Match Shapes

At your disposal is a playing field 5 by 5 cells. Below it, you are offered either a set of multi-colored pieces, or one colored piece for free placement on the field. As soon as three or more pieces of the same color are side by side (but not diagonally), they will merge into the next level piece. Pink makes blue, blue makes purple, and so on. Your task is to add as many figures as possible, taking up a minimum of space.