[Bug Fix] New algorithm for color ranking (WIP)