Python Code for a Spelling Game