Towers of Hanoi using javascript & canvas