working new stack and hanoi for odd numbers