working Game Finite State Machine