Python program to solve the popular 2048 game.