quick and dirty "Tower of Hanoi" implementation