private synchronized void finished(){
		synchronized (System.out){
			if(this.maxUidSeen == this.uid){
				System.out.print("I am the leader with UID = "+(this.uid+1));
			}
			else{
				System.out.print("My UID = "+(this.uid+1)+", my leader UID= "+(this.maxUidSeen+1)+", my parent UID= "+(this.parentUid+1));
			}
			System.out.print(", my children are {");
			if(this.child.size() == 0){
				System.out.println("none}");
			}
			else{
				for(int i=0; i<this.child.size(); i++){
					System.out.print((this.child.get(i)+1));
					if(i < this.child.size()-1){
						System.out.print(",");
					}
					else{
						System.out.println("}");
					}
				}
			}
		}
		NodeThread.numFinished++;
	}