First pass at color algorythn.. good enough for now