Added clock and ability to manipulate flow of time

Fixed a bug so the game works in Firefox again