updating grid for coloring on drag