Made replay save states approximately every 170ms.
Added ability to browse through paused replay.
During replay, press [UP] to pause or resume.
When replay paused, press [LEFT] and [RIGHT] to browse.
Press any other button to continue playing.
Now cancelling replay if any key or button is pressed.
Made WaitJoystick() exit when window closed.