Find the minimum number of colours Raphael needs to paint the following figure in such a way that no connected points are of the same colour.