Distance between cells horizontally: Distance between cells vertically:
a is the value of the tile being merged into the tile with value b
Function to determine result:
(a, b) => a + b
Function to determine if they can merge:
(a, b) => a == b
These functions take the value of the cell and return a number, which will be converted to
hexadecimal to get the color Function to determine background color: