grid coloring rules added