user input for TowersOfHanoi