A simple JavaScript version of the Tower of Hanoi game