Green flag. LAG ALERT!
This is for my science assignment. The particles are programmed to perform brownian motion (although it might not be THAT accurate), where particles collide and reflect off each other, while vibrating in a random manner. The square is programmed to expand and retract accordingly to the particles. If you play this project for long enough, you will notice that the square will expand, instead of collapsing. The particles will also gradually spread out over the square's volume.