public void drawLocation(Location currentLocation, Graphics2D g)
	{
		HashMap<Integer,BufferedImage> backgrounds=currentLocation.backgroundLayers();
		HashMap<Integer,ArrayList<Entity>> entities=currentLocation.entityListByDepth();
		
		Set<Integer> mergedSortedKeys=mergeKeys(backgrounds.keySet(),entities.keySet());
		
		Iterator<Integer> iterator=mergedSortedKeys.iterator();
		while(iterator.hasNext())
		{
			int key=iterator.next();
			BufferedImage background=backgrounds.get(key);
			if(background!=null)
				g.drawImage(background,0,0,null);
			ArrayList<Entity> entitiesAtDepth=entities.get(key);
			if(entitiesAtDepth!=null)
				for(Entity entity:entitiesAtDepth)
				{
					drawEntity(entity,g);
				}
		}
	}