Debugged addParticle for SpatialGrid