@Override
	public void objectReceived(Object o) {
		NetMessage n;
		try {
			n = NetMessage.parseFrom((byte[])o);
		    System.out.println(n.getType().toString() + " message received");
			switch (n.getType()) {
			case AUTHENTICATION:
				authenticate(n);
				break;
			case REPLY:
				acknowledge(n);
				break;
			case ICON_IMAGE:
				iconImage(n);
				break;
			default:
				System.err.println("Unhandled NetMessage in MenuAgent");
				break;
			}
		} catch (InvalidProtocolBufferException e) {
			e.printStackTrace();
		}
	}