refactor game object into an actual game class