Chat is working

Implemented the chat functionality that uses socket.io