2048 on the command line, written in Python 3