Random motion of particles on a grid