Implemented cell coloring.