add conflict detection for max_courses constraints