Made some changes to make the game works on mobile device  
An uncaught error persits at the end of a game...
Some formating on the framework file