public static boolean isLocationVisible(Location l) {
		if(NoFoW) return true;
		
		//Check all ships in player's fleet to see if any are within range.
		ArrayList<Ship> fleet = players.get(currentPlayer - 1).getFleet();
		for(int i = 0; i < fleet.size(); i++) {
			Ship s = fleet.get(i);
			if(Location.distance(s.getLoc(), l) <= s.getSensorRange()) {
				return true;
			}
		}
		
		//Check if any are within range of planet as well.
		ArrayList<Planet> playerSystems = players.get(currentPlayer - 1).getTerritory();
		for(int p = 0; p < playerSystems.size(); p++) {
			Planet planet = playerSystems.get(p);
			if(planet.getAlliance() == currentPlayer && Location.distance(planet.getLocation(), l) <= planet.getSensorRange()) {
				return true;
			}
		}
		return false;
	}