factor out game object