A solver for the game 2048