java code to solve a tower of hanoi problem of smaller scale (<10 pegs) graphically