refactor network interactions between server/client. server and client rooms implemented