move the sample 2048 UI game to arrays