Update hangman.py

Rearranged some stuff, and fixed a couple of small things. Vague changelog, I know.