Tower of Hanoi (non-recursive solution) C++