A generic version of the 2048 game.