Tiles merge with any tile of the same color, not just the same number. Merging adds the two numbers.
Every color is a group of two values {n, 2n}. Any two tiles sharing a color can combine: the smaller pair (1+1) makes the group's bigger tile, while mixed and larger pairs launch new groups. Reach the 2048 tile to win.