hangman using swift