Each blue square gives 1 point.
Red squares gives 2 points but each red square requires a blue square adjacent to it in order to give points.
Green squares gives 3 points and needs both a red and a blue adjacent.
Yellow requires red, green and blue and gives 4 points.
Purple gives 5 points but needs a blue, a red, a green and a yellow adjacent to it.