Match all the tiles with the same color or same shape