You win a level when you collect enough charms to meet the requirements of the level before you use all your moves. Collect charms by matching them or by enchanting them twice.
Later levels introduce additional objectives like lighting torches, opening chests, and even stealing gold from a hungry dragon!