First working demo
Changed how to calculate time progression
Moved scripts into a folder
Added mouse listening
Detects 5 closest dots to mouse click
Mouseover highlights 30 closest points
made game mode modifiable during gameplay
All 1500 particles are now avoiding each other and the sim is running at about 20 fps on my laptop.
Running smoother now but I increased the calculations per second? Must have programmed something wrong for the render loop, but leave like this until I figure that out since it works better at the moment.
Pressing the mouse button will now spawn more particles.
Features
* Particles will now merge if they get too close to each other.
Bugs
* Improved wall bleed prevention.
Now supports resizing, giving the user the possibility to experiment with this as a gas under pressure.
Improved the physics a bit. Particles now loose energy only when touching the wall. Also keeps track of the total energy in the system (displayed as "temperature").

- A bug currently cause faulty energy transfer during interaction
Now displays average "temperature" instead of total temperature.
Reworked energy calculation (display only, doesn't do anything) and changed how particles change directions when hitting the wall.
Using Quadtree instead of K-D Tree and seeing a MASSIVE improvement, about 10 times increase in FPS when having about 100 particles!
Resizing the window will also rebuild the quadtree.
Changed force calulations between particles, made them calm down a little bit so they're easier to view.
Refactoring code
Moved files