remove old files, update undo, add getNumberOfMoves method