Color Matching Tile Game

Rules:

  1. The first tile can be placed anywhere on the grid.
  2. Additional tiles must touch at least one existing tile.
  3. Colors must match where tiles touch (e.g., if the right side of one tile is blue, the left side of the adjacent tile must also be blue).
  4. Click on a tile to remove it (you cannot remove tiles that would disconnect the pattern).