Fixed dealing, undo is still pretty broken.