Fixed the particle grid generation.
Fixed all sorts of dumb bugs I committed.
I AM SO SORRY PAUL PLEASE FORGIVE ME