simple functions around the Tower of Hanoi problem