2048 in python for terminals