Mini state machine added in GamePlay.as