Add tower of hanoi in ruby