Made the game more modular and greatly increased efficiency on events.
Fixed a bug in the timing that would cause infinitly long frames. Code
needs documenting and maybe more refractoring.