Refactored: Node colors are global variables.