Added the code to check if the employee with the assigned task will clash with the start and end date of the suggested new task