@Override
 public void render() {
   AnimatedTiledMapTile.updateAnimationBaseTime();
   spriteBatch.begin();
   for (MapLayer layer : map.getLayers()) {
     if (layer.isVisible()) {
       if (layer instanceof TiledMapTileLayer) {
         renderTileLayer((TiledMapTileLayer) layer);
       } else {
         for (MapObject object : layer.getObjects()) {
           renderObject(object);
         }
       }
     }
   }
   spriteBatch.end();
 }
 @Override
 public void render(int[] layers) {
   beginRender();
   for (int layerIdx : layers) {
     MapLayer layer = map.getLayers().get(layerIdx);
     if (layer.isVisible()) {
       if (layer instanceof TiledMapTileLayer) {
         renderTileLayer((TiledMapTileLayer) layer);
       } else {
         for (MapObject object : layer.getObjects()) {
           renderObject(object);
         }
       }
     }
   }
   endRender();
 }
 @Override
 public void render(GamePlayManager main) {
   boolean drewBG = false;
   boolean drewPlayer = false;
   beginRender();
   for (MapLayer layer : map.getLayers()) {
     if (!layer.getName().equals("AINODEMAP")) {
       if (!drewBG && layer.getProperties().containsKey("bg")) {
         drewBG = true;
         main.drawBackGround(spriteBatch);
       }
       if (!drewPlayer && layer.getProperties().containsKey("player")) {
         main.drawPlayerLayer(spriteBatch);
         drewPlayer = true;
       }
       if (layer.isVisible()) {
         renderTileLayer((TiledMapTileLayer) layer);
       }
     }
   }
   endRender();
 }