jquery ttt and hanoi