implemented server-to-client sync methods. changed chat messages to be sent only server side