This is Shisen Sho like game. The aim is to remove all the tiles from the board. Only matching pair of tiles can be removed at a time when they are connected only by 3 or less number of straight lines. The lines must be horizontal or vertical and not diagonal.
One magic tool eliminates one pair of matching tiles.