Work with Particle struct without ID. Add Grid.
Implement grid particles. It seems to work fine. Uncomment the debug line in updateGridIndexes method of Particle struct to color the particle depending on the cell.