Try doing making three separate variables for green, black, and violet. Then checking if they exist. FYI you can format code. Read this: