add main game logic class file