Aladdin and the Magic Lamp

Click on a tile that if swapped with a neighbouring tile would have created 3 or more of the same tiles in a row. Collect all the pieces of the magic item to advance to the next level.