Refactored the game object.