Implement the isOverLap logic