matching colors along the grid