Walk along line through 2D grid.