added game logic class