Seems to work.  Loops to empty board at the very end, but I don't really care.