re-written a big part of the game engine.

- Fixed falling through objects when minimizing game.
- Added constructor class for Player, and Doodads.
- Re-structured the core object, and events object.
..and more.