private int Score(char[,] board) { return(board.EnumerateFlat().Sum(c => c == '+' ? 1 : c == 'x' ? 1 : c == 'o' ? 2 : 0));; }