This for loop could be slow because of the indexes and length, maybe only get the particle once