made it take input into the chatroom