Hanoi Tower without recursion