reactor hangman for concurrent programming assignment 1