Java studying sockets with chat creation