Shuffle the garden (it stays solvable) or undo a few moves.
Match pairs of free tiles until the garden is clear.