Working through the homework assignment - trying to reproduce the Hangman game in JS