Better Color Palette Generator

Doesn't get caught in an infinite loop (Hooray!)