Added message printing to chat window