Implement the game state mechanism