finishing the implementation for checking the overlapping between tasks
and fixed tasks