public CodePanel(JFrame frame, int lvl){
		frame.setSize(300, frame.getSize().height);
//		this.setSize(frame.getSize());
		int[] codes = new int[10];
		Random rand = new Random(System.currentTimeMillis());
		String codeStr = "";
		for(int i = 0; i < lvl; i++){
			do{
				codes[i] = rand.nextInt()%100;
			} while(codes[i] < 0);
			codeStr += (i == 0)? codes[i] : (" - " + codes[i]);
		}
		JLabel codeLbl = new JLabel(codeStr);
		this.add(codeLbl);
	}