the juggler sequence using state machines