sinle page towers of hanoi implementation