Simple TicTacToe with plain javascript