Developing a particle simulation