adding 2048 game logic