Finished main game class.