Tower of Hanoi-Program with corrected output