Bounds checking modified to remove spinning

By having the particles stop at the first point where they
cross the boundary line, we prevent the artificial torque
exerted on the semi-rigid body.