Refactored recoloring on adjacent nodes
Added command to color all nodes black