logic to send messages
added logic to change to a different room
added logic to handle clients disconnections