public ArrayList loadLevel(Image bbi, Image sbi,Image tbi, Image bli, int num) {
    	
   	 levelNumber = num;

  		 for (int i = 0; i < level[num].length(); i++) {

  		 	char item = level[num].charAt(i);

  		 	if (item == '\n') {
  		 		by += 50;
  		 		bx = 0;
  		 	} else if (item == '#') {
  		 		blocks.add(new BasicBlock(bbi, bx, by));
  		 		bx += 60;
  		 	} else if (item == ' ') {
  		 		bx += 60;
  		 	} else if (item == '$') {
  		 		blocks.add(new SecondBlock(sbi, bx, by));
  		 		bx += 60;
  		 	} else if (item == '%') {
  		 		blocks.add(new ThirdBlock(tbi, bx, by));
  		 		bx += 60;
  		 	} else if (item == '.') {
  		 		blocks.add(new BonusLifeBlock(bli, bx, by));
  		 		bx += 60;
  		 	} 
  		 }

  		 bx = 0;
  		 by = 0;
  		 return blocks;
   }