tower of hanoi (cheated a little)