Tower of Hanoi Solver