AI for playing 2048 game