Tower of Hanoi C++ code