Connect all the points of the same color in the grid with one line without crossing, and fill all the grid.