algorithm to find same colors; css for tile colors