Minor refactor for Towers of Hanoi