Moved the include statements from main.cpp to main.h.
Added an event handler in the game loop function to exit the application
with a quit, keydown, or mouse click event.