added MainGame class