public void run(){
			while(true){
				try{
					String msg = (String)sInput.readObject();
					if(cg == null){
						System.out.println(msg);
						System.out.print("> ");
					}
					else{
						cg.append(msg);
					}
				}
				catch(IOException e){
					display("Server has closed the connection: " + e);
					if(cg != null){
						cg.connectionFailed();
					}
					break;
				}
				catch(ClassNotFoundException e){
				}
			}
		}