Solve the popular 2048 game in python.