Fixed an issue where undo wasn't handling transfer to Foundation pile correctly.