Fixed overlap checking. This works now.
Overlap checking complete.