Added constraint for courses being overlapped