start convert of gumball machine to state machine