Find an optimal algorithm to crack 2048 game.