Fixed undo move (kinda)