The green squares should follow the right side of the blue shape. They should not overlap the shape.

X
X
X
X
X
X