Tower of Hanoi in Java