GameObjectFactory is the interface for factories that create game objects.
Abstract method to create a game object. Concrete subclasses must implement this method.
GameObjectFactory is the interface for factories that create game objects.