implemented color reduction
fixed img diff algorithm
added score management