This is the hanoi algorithm in c