Try to get the whole grid to be the same colour within the given number of moves, by repeatedly flood-filling the top left corner in different colours.