making 2048 game from scratch