refactor game out of window into game class