updated comparison = block & colors
all fixed except int bug