Each segment has an electromagnet attached to it, and these are activated by a current that flows fromheadtotail in more or less the way that a nerve signal flows in a real animal.
It reportedly took Ms. Moss six months to learn the move, in which you bring a leg looping up from behind your head, like a scorpion's tail, to bonk someone on the noggin.