deleted createClientSocket and added thread in createServerSocket