Tries to solve 2048 game.