private void loadAll()
  {
      lowerLayers.clear();
      middleLayers.clear();

      ArrayList<SaveVariables> lowerVar = new ArrayList<SaveVariables>();
      ArrayList<SaveVariables> middleVar = new ArrayList<SaveVariables>();
      ArrayList<SaveVariables> invVar = new ArrayList<SaveVariables>();
      ArrayList<SaveVariables> enemyVar = new ArrayList<SaveVariables>();
      
      SaveVariables newPlayer = new SaveVariables(0,0,0);
      try {
      FileInputStream saveFile = new FileInputStream("save.sav");
      
      ObjectInputStream save = new ObjectInputStream(saveFile); 
      
      lowerVar = (ArrayList) save.readObject();
      middleVar = (ArrayList) save.readObject();
      invVar = (ArrayList) save.readObject();
      enemyVar = (ArrayList) save.readObject();
      newPlayer = (SaveVariables) save.readObject();
      equipped = (int[]) save.readObject();
      xLLimit = (int) save.readObject();
      xRLimit = (int) save.readObject();
      yULimit = (int) save.readObject();
      yDLimit = (int) save.readObject();

      
      save.close();
      }      
      catch(Exception ex){
          ex.printStackTrace();
      }
      
      player.setCoords(new Coords(newPlayer.getX(), newPlayer.getY()));
      player.setLife(newPlayer.getType());
      for (SaveVariables inventory : invVar) {
          addToInventory(inventory.getX(), inventory.getY()); 
      }
      for (SaveVariables newMiddleLayer : middleVar) {
          Coords coords = new Coords(newMiddleLayer.getX(), newMiddleLayer.getY());
          addEntity("middle", coords, newMiddleLayer.getType());        
      } 
      for (SaveVariables newLowerLayer : lowerVar) {
          Coords coords = new Coords(newLowerLayer.getX(), newLowerLayer.getY());
          addEntity("lower", coords, newLowerLayer.getType());
      }
      for (SaveVariables newEnemyLayer : enemyVar) {
          Coords coords = new Coords(newEnemyLayer.getX(), newEnemyLayer.getY());
          switch (newEnemyLayer.getType()) {
              case 1:
                  zombie = new ZombieEntity(this, "sprites/npc/zombie1.png", coords, Direction.UP, 1);
                  enemyLayers.put(coords, zombie);
                  break;
                  
          }
      }
      menuRunning = false; 
  }