making a game class