Changed the algorithm for picking colors to one that is better (imo)

Now using the algorithm similar to the previous version of palette
builder which is much better. Fixed some display issues as well with
white space.