Making GameObjectFactory a singleton