Put in a basic undo function
Still buggy
works if you do 2 or more changes before undoing (i think)