Adding server to client functionality, need to test.
Fixed int loop declaration.
Tested sending messages from server to client. Working.
resolved conflicts