// Add new variable to track the color palette indices
uint8_t colorIndex;