Update hanoi.c

Changed initializer function, removed swap() function.