Refactored the game object and scene loading