fixed bug for adding and editing deadline tasks

-added more conditions for checking if timeslots are free regarding
deadline tasks