@Override
	void handleMessage(ACLMessage msg) {
		String message = msg.getContent();
                System.out.println(this.getLocalName() + " got message " + message + ", answers.");
		if(message.equals(DEFECT)){

			semaphore = otherPlayerDefected;
			otherPlayerDefected = true;
		}
		else if(message.equals(COOPERATE)){

			otherPlayerDefected = false;
		}

		if(message.equals(DILEMMA)){
			sendMessage(msg.getSender(), (otherPlayerDefected && semaphore) ? DEFECT : COOPERATE, ACLMessage.PROPOSE);
			
		}
	}