sample game state machine