Added end game detection and restart button.
Minor fixes to make the game ready for distributing.