Using arrays instead of 3 variables for rgb
Uint8 overflow resulted in bad colors in some cases