Fixed the color generation(i think)

My tests passed, so i guess that means it's fixed?