Further implemented game state management.