2048 problem cpp competitive coding

Why do we need 2d array for spellings?