Towers of Hanoi Game in JS