Solve tower of hanoi