Created main game logic class