Coding the GameObjectFactoryPlayMode class