Implementing the ListeningThread class in our ChatWindow