private float wages(GroupOfUnits unit, int fromx, int fromy, int tox, int toy)
	{
		GroupOfUnits from = p2u.get(fromx, fromy);
		GroupOfUnits to = p2u.get(tox, toy);
		if (obstacles.contains(new core.Point(tox, toy))) {
			return 200000f;
		}
		if (to != null && to != unit) {
			return 500000f;
		}
		if ((fromx-tox)*(fromy-toy) == 0) {
			return 1f;
		} else {
			return 2f;
		}
	}