Solved tower of Hanoi using 3 stacks