Version 2 of Tower of Hanoi, written in Java