@Override
	public int compareTo(GroupOfUnits o)
	{
		System.out.println("compare "+this.type.name+", "+o.type.name);
		int result = turn - o.turn;
		if (result != 0) {
			System.out.println(result);
			return result;
		}
		result = wait - o.wait;
		if (result != 0) {
			System.out.println("wait"+result);
			return result;
		}
		result = o.getSpeed() - getSpeed();
		System.out.println(result);
		return result;
	}