draw(index) { // send event to socket.io if(this.turn) { // if turn is true then mark as X or mark as O this.content[index] = "X" } else { this.content[index] = "O" } this.turn = !this.turn; // calculate the winner this.calculateWinner(); },