Grid coloring is working correctly