Sentence Rearrangement Game using Python