The game 2048, implemented in Python