Fixed undo bug in model.completeMove