private void loadWaves(int level) {
		Scanner scanner = null;
		try {
			scanner = new Scanner(new FileInputStream("res" + File.separator +"levels" + File.separator +"level"+level+File.separator +"waves.txt"));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
	
		String currentLine;
		String[] currentLineArray;
		ArrayList<Wave> waveList = new ArrayList<Wave>();
		while (scanner.hasNext()) {
			currentLine = scanner.nextLine();
			
			currentLineArray = currentLine.split(",");
			ArrayList<Integer> enemyType = new ArrayList<Integer>();
			for (int i = 0; i < currentLineArray.length; i++) {
				int eType, eAmount;
				eType = Integer.parseInt(currentLineArray[i].substring(0, currentLineArray[i].indexOf("-")));
				eAmount = Integer.parseInt(currentLineArray[i].substring(currentLineArray[i].indexOf("-")+1));
				for (int j = 0; j < eAmount; j++) {
					enemyType.add(eType);
				}
			}
			waveList.add(new Wave(enemyType));
		}
		
		this.waves = waveList.toArray(new Wave[waveList.size()]);
	}