Update TowersOfHanoi.java

This runs!
added int max for indexes which is total-1.... (because they start with 0. derp.)