getScore(x, y, player) {
    if (this.board[x][y] !== -1) return 0;
    let score = 0;
    for (let i = -1; i <= 1; i++) {
      for (let j = -1; j <= 1; j++) {
        if (i === 0 && j === 0) continue;
        score += this.getScoreInDirection(x, y, i, j, player);
      }
    }
    return score;
  }
Return the score received if played at (x, y)