adding Hanoi and Coordinate functions