Simple chat client in java