Making deep copy of stateMachine Level

Made a deep copy of stateMachines current level when starting a new level on the game. I made it, because if someone tried to replay some Level the data would be lost and the game page would require a refresh
Updating code formating for better code folding in WebStorm