Added x86 debug mode.
Adding logging to game events.