The black squares should follow the bottom side of the blue shape. They should not overlap the shape.

X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X