there's already an undo button: right-click on a swap. thanks for playing and commenting!
Oh ok! Sorry about that then!