public void message(String uid, int messageCode){
		if(messageCode == Variables.ELECTION_MSG){
			if(Variables.getUID().compareTo(uid) > 0){
				fwMessage(uid, messageCode);
			}else if((Variables.getUID().compareTo(uid) < 0) && !Variables.
					isParticipant()){
				fwMessage(Variables.getUID(), messageCode);
			}else if((Variables.getUID().compareTo(uid) < 0) && Variables.
					isParticipant()){
				fwMessage(uid, messageCode);
			}else if(Variables.getUID().compareTo(uid) == 0){
				Variables.setLeader(1);
				fwMessage(uid, Variables.ELECTED_MSG);
				Variables.setParticipant(0);
			}
		}else if(messageCode == Variables.ELECTED_MSG){
			if(!Variables.isLeader()){
				Variables.setParticipant(0);
				fwMessage(uid, Variables.ELECTED_MSG);
			}else{
			}
		}
	}