tic-tac-toe and tower of hanoi written with js and jquery