Coloring during algorithm steps