Starting undo
Fix map generation
Retain map topleft on undo so there is no strange map jumping