public void loadConfig() throws IOException {
		
		File f = new File(BrickGame.path + "/custom/" + name + ".png");
		if (f.exists()) {
			my_image = ImageIO.read(f);
		}

		try {
			System.out.println(name + ": load custom AI configuration");

			
			ArrayList<Double> ai = Tools.getDoubleConfig(BrickGame.path+"/custom/" + name + ".txt");
			if(ai.size()!=9){
			      throw new IOException("false array size");
				}
			
			move_power=ai.get(0).intValue();
			rotate_power=ai.get(1).intValue();
			gap=ai.get(2).intValue();
			maxdegree=ai.get(3).intValue();
			forward=ai.get(4).intValue();
			distance_from_me=ai.get(5);
			distance_from_enemy=ai.get(6);
			distance_to_other_base=ai.get(7);
			distance_to_other_multi=ai.get(8);
			
		} catch (IOException e) {
			System.out.println(name
					+ ": load backup configuration because error");

			move_power = d_move_power;
			rotate_power = d_rotate_power;
			gap = d_gap;
			maxdegree = d_maxdegree;
			forward = d_forward;
			distance_from_me = d_distance_from_me;
			distance_from_enemy = d_distance_from_enemy;
			distance_to_other_base = d_distance_to_other_base;
			distance_to_other_multi = d_distance_to_other_multi;
		}
		
	}