Added a mechanism in server to check if a client is greeted. Also changed the main method to ChatClient instead of ReceivingThread