public boolean isBlocked(Location l, boolean playersBlock){
		if (playersBlock)
		{
			//Return true if occupied by any player
			for (Player player : players)
			{
				if (l.equals(player.getLocation()))
					return true;
			}
		}

		//Return true if the location is beyond the edge of the map
		if(l.getX() >= MAX_X || l.getX() < 0 || l.getY() >= MAX_Y || l.getY() < 0){
			return true;
		}

		//Return true if the location is blocked
		for(int i = 0; i < blockedLocs.size(); i++){
			if(l.equals(blockedLocs.get(i))){
				return true;
			}
		}
		//Otherwise return false
		return false;
	}