version compiles and runs, but particles move in straight lines