modified MainGame.java to temporarily prevent the error log from displaying on exit