added print statements in checkConflicts()