public void loadWorld(int id)
	{
		try {
			
			File directory = new File("src/" + worldPath);
			
			File[] fileList = directory.listFiles();		
			Map[] mapArray = new Map[fileList.length];
					
			
			for(File file : fileList)
			{
				Map map = new Map();
				
				try {
					map.loadMap(new BufferedReader(new FileReader(file)));
				} catch (FileNotFoundException e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				}
	
				mapArray[Integer.parseInt(file.getName().split("\\.")[0])] = map;
			}
			
		
			for(Map map : mapArray)
			{
				maps.add(map);
			}
			
			
		} catch (Exception e) {
			
			for(int i = 0; i < countMapFiles(); i++)
			{
				java.net.URL imageURL = getClass().getResource("/" + worldPath + i + ".txt");
				Map map = new Map();
				try {
					map.loadMap(new BufferedReader(new InputStreamReader(imageURL.openStream())));
				} catch (IOException e1) {
					e1.printStackTrace();
				}
				maps.add(map);
			}
		}
		
		currentMap = maps.get(0);	
	}