public static int pickEnemy(int level){
    int spread = RandomNumber.getNormalRand(0,4, 2, 1);
    int itr = 0;
    int tries = 0;
    do{
      itr = RandomNumber.getRand(1, enemys.size());
      tries++;
    }while(tries < 100 &&(enemys.get(itr).level > level + spread|| enemys.get(itr).level < level-spread));
    if(tries == 100){
      for(itr = 1; itr <= enemys.size(); itr++){
        if(enemys.get(itr).level <= level && (itr == enemys.size() || enemys.get(itr+1).level > level))
          break;
      }
    }
    return itr;
  }