Added flags to specify the possible states of each color.