public static Ship nearestInTeam(Ship ship, Team team)	// Team referes to the team argument, not the owner's team
	{
		Ship temp = null;
		double distance = Double.POSITIVE_INFINITY;		
	
		for(Ship s : BattleLogic.curLogic().getShips())
		{
			double tempDist = distTo(ship, s);
			if(s.getTeam() == team && tempDist < distance)
			{
				temp = s;
				distance = tempDist;
			}
		}
		return temp;
	}