extracted the game to a different class.