Update TowersOfHanoi.java

Output is now correct, and an input prompt has been added.