Added first working logic of network connections between server and clients