Targeting optimizations

I didn't know about getNearbyEntities!