TicTacToe in Javascript and others