fix towers of Hanoi with stacks