Tower of Hanoi problem solved using recursion