A relatively bad version of 2048 in Python