fine tuned the main event loop so that quitting works the way it should, and we're not wasting a billion cycles on checking if the game should still be running.