Simulates particles bouncing around in a box