Changed the while loops in Game to do...while loops so that isRunning has to be set to false during a loop in order to cause the game to exit