Hanoi gives out of range errors (list element -1) after moving the cursor to an empty pole, and stops.