added a class for the game