Beggar my Neighbour simulator in Python