Moved globals into the game object.