Coding a stripped down GameObjectFactory