add find_best_color() and 2 helpers