public  void run()  {

    //	System.out.println("In the run");
        // Process all messages from server, according to the protocol.
    	 String line = null;
        while (true) {
        	//System.out.println("in while loop");
           
			try {
				line = in.readLine();
				
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		//	System.out.println("in while loop : "+line);
			/*if(line ==null)
			{
				System.out.println("in line == null"+line);
				try {
					Thread.currentThread();
					Thread.sleep(1000);
				} catch (InterruptedException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			else */
			if (line.startsWith("SUBMITNAME")) {
              // out.println(getName());
			//	System.out.println("in line == SUBMITNAME"+line);
				//sendMsg(initilaize.p.getName());
			//	System.out.println("in line == SUBMITNAME"+name);
			//	Game_GUI.setChat(line);
            } else if (line.startsWith("NAMEACCEPTED")) {
              //  textField.setEditable(true); 
            	System.out.println("in line == NAMEACCEPTED"+line);
            	
            } else if (line.startsWith("MESSAGE")) {
          //      messageArea.append(line.substring(8) + "\n");
            	System.out.println("Client ===>"+initilaize.p.getName()+line.substring(8) + "\n");
            	setMsg(line.substring(8));
            	//initilaize.screen.setChat();
            	//app_screen.btnHidden.notifyListeners(SWT.Selection, new Event());
            	//Game_GUI.setChat("this is a text");
            	 initilaize.screen.display.asyncExec(new Runnable() {
            		 
            		 public void run() {
            			 initilaize.screen.setChat(/*name*//*line.substring(8)*/ );
            		 }
            	
            	  });
            	//dispaly_Msg(name);
            	//Game_GUI.setChat("this is a text2");
            	//Game_GUI.setChat("this is a text3");
            }
            else if(line.startsWith("white"))
            {

            	initilaize.assignPlayerCards(initilaize.p,line.substring(5));
            }
            else if(line.startsWith("black"))
            {

            	//initilaize.screen.set_Black_Card(line.substring(8));
            	initilaize.setBlack_card(line.substring(5));
            }
        }
    }