changed name of connecting to socket server function to connect_to_server
created close function in socket
changed name of client_socket to clientSocket