You call this mat here, and side (which is more accurate) in the getColors() function. Choose one and ensure both places are consistent.