Try to get the whole grid to be the same color within the given number of moves, by repeatedly flood-filling the top left corner in different colors.
Click in a square to flood-fill the top left corner with that square’s color.