public void nextLevel(){
		level++;
		if (level >= 10){
			level = 10;
			ifi.setEnabled(false);
		}
		
		Runnable changePic = new Runnable() {
			public void run(){
				String pic = "hangman" + level + ".gif";
				BufferedImage myPicture = null;
				try {
					if (!iidenki.IS_JAR) {myPicture = ImageIO.read(new File(pic));}
					if (iidenki.IS_JAR) {myPicture = ImageIO.read(this.getClass().getResource("/" + pic));}
				} catch (IOException e) {
					e.printStackTrace();
				}
				icon.setImage(myPicture);
				picLabel = new JLabel(icon);
				frame.add(picLabel);
				frame.setVisible(true);
				if (level == 10){
					JOptionPane.showMessageDialog(frame, gh.loseText());
					level = 0;
					nextLevel();
					ifi.generateNew();
				}
			}
		 };

		 SwingUtilities.invokeLater(changePic);
	}