Create ConnectionToServer.java

Communication with the server and receives the object.