Added instant replay function (press [F8]) that "rewinds" gameplay.
Switched to the new state saving code.
Built-in menu now available when pressing [F10].
Built-in debugger now available when pressing [CTRL]+[F10].
Fixed a memory corruption bug in the instant replay recorder.
Fixed instant replay not recording the first state.