Towers of Hanoi game implemented in Javascript