working particle simulation.  extra credit tasks to be implemented.