change color computation to a score system
comment out unnecessary part