added game class for game logic