When the player chooses a direction, the tiles in all rows or columns aligned with
that direction merge and slide in that direction if possible. Let us refer to a single
row/column as a line, with the front of the line being the end farthest in the direction of
motion