Incorrect version but added code to pick the uncolored nodes.