defined sum_points_lineup and identify_optimal