Update quadtree.js

The value of 'overlap' should reflect any possible collisions and not just the last tested comparison.