fixed alpha condition in hasOverlap