Chat Client using simple implementation of sockets in java