Painting a Grid With Three Different Colors