private int getNewLiftID(){
		if(new File(liftPath).listFiles().length==0){
			return 1;
		}else{
			int[] lifts = new int[new File(liftPath).listFiles().length];
			
			for(int i=0;i<lifts.length;i++){
				lifts[i] = Integer.parseInt(new File(liftPath).listFiles()[i].toString().split(".y")[0].split("elevators/")[1]);
			}		
			
			Arrays.sort(lifts);
				
			for(int k=0;k<lifts.length;k++){
				if(lifts[k]!=k+1){
					return k+1;
				}
					
				if(k+1==lifts.length){
					return lifts.length+1;
				}
			}			
		}
		return -1;
	}