Shanghai is a mahjong solitaire. The aim of the game is to remove all matching pairs of tiles. Tiles must be free on either the left or right as well as on top. In most cases, you must match tiles exactly to remove them. But there are two exceptions: You can pick any two flower or season tiles.