changed particle class variables from vector to simpler entities to facilitate code