finished scoreParticles function. sigma_ can be tuned