Hanoi Tower Solver Algorithm in C