improoved mouse dragging/clicking
added exit condition to map editor
fixed exit edit box bug
remade the loading of savestates;
writing camera pos to save file
corrected file saving/truncate flag added