fixed the CheckDeadlines() function so that it works better and doesnt automatically delete tasks whose deadlines have passed