2048 Algorithm