Basic hangman implemented Scala