tic-tac-toe, towers of hanoi, all in beautiful javascript