Towers of Hanoi programming with pb