add class for game logic