undo-redo + minor code improvements
game persistence + minor code improvements