isOverlapping is now defined in terms of existing functions
Refactoring