Towers of Hanoi solver.