refactor into game object