Game of TicTacToe in JS