moving hanoi to index