This bit of code just tends to look for the first scent it finds that qualifies rather than going for the one with the highest scent intensity.  Need to fix that.