Change name of function to update positions of all particles