        category.text = HangmanBrain.chosenCategory
        label.text = ""
        print(randomWord)
    }
    @IBAction func restart(_ sender: Any) {
        restartGame()
    }
    
}
extension SinglePlayerViewController: UITextFieldDelegate {
    func textFieldShouldReturn(_ textField: UITextField) -> Bool {
        textField.resignFirstResponder()