private int getDistanceToNearestOpponent() {
		nearestOpponent = null;
		int distance = LONGDISTANCE;
		Opponent[] opponents = getOpponents();
		for (int i=0; i<opponents.length; i++) {
			int d = (int)Vector3D.getDistance(getLocation(), opponents[i].getLocation());
			if (d < distance) {
				distance = d;
				nearestOpponent = opponents[i];
			}
		}
		return distance;
	}