game object refactoring