Formatting and added a debugger

Formatted a few classes and created a game debugger that displays
messages on the screen. Press escape to toggle the debugger on/off and
backspace to clear messages from the debugger.