add `Game` class with game logic