tic tac toe, towers of hanoi in JS