public void loadWorldFromImage(String filepath){
		try {
			BufferedImage image = ImageIO.read(World.class.getResourceAsStream(filepath));
			
			width = image.getWidth();
			height = image.getHeight();
			
			data.clear();
			
			for(int x = 0; x < image.getWidth(); x++){
				for(int y = 0; y < image.getHeight(); y++){
					int rgb = image.getRGB(x, y);
					int red = (rgb >> 16) & 0x000000FF;
					int green = (rgb >> 8) & 0x000000FF;
					int blue = (rgb >> 0) & 0x000000FF;
					String colour = red + "-" + green + "-" + blue;
					
					switch(colour){
					case "0-102-0":
						data.add(0);
						break;
					case "102-102-102":
						data.add(1);
						break;
					}
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}