Work on fixing undo for tile painting