When doing an undo, if there is a selected piece, deselect it.