Implemented equals in Color
Implemented getRuleByColor