Added game state manager class to handle transition from one game state to another.