Fixed the save function!

Now the level should be saved correctly
Fixed the intern push_front
Fixed a potential bug in the loading function
Fixed a crash when the loading function fails

Now the editor will create a new level if the loading function fails