Update Hanoi.c

Fix several basic bugs.
Add special if branch when input is small. line 7