code for interacting particles simulation