Fixed color mode issue
Fixed array out of bounds error
Make it easier to change color palettes