added a maingame class - this is the main part of the game when not battling