Fixed a couple bugs in isOverlap