private static int EvaluateBoard(PieceType[,] board, PieceType type) { int choice = 0; int[] choicesValue = new int[mColumns.Length]; for (int i = 0; i < mColumns.Length; i++) { //evaluates all possible choices for the AI choicesValue[i] = AIHelper.EvaluateDecision(board, type, i); } choice = AIHelper.FindValidHighestChoice(choicesValue); return(choice); }