private static ArrayList<Monster> initiative(ArrayList<Monster> monsters, Player p, boolean atRange, boolean faster) {
    int target = 0;
    if(atRange) {
      target = p.getSpeed() + utils.random(0, 7);
    }
    else {
      target = p.getSpeed() + utils.random(-3, 4);
    }
    ArrayList<Integer> speeds = new ArrayList<Integer>();
    for(int i = 0; i < monsters.size(); i++) {
      speeds.add(monsters.get(i).getSpeed() + utils.random(-3, 4));
    }
    ArrayList<Monster> returnMonsters = new ArrayList<Monster>();
    for(int i = 0; i < speeds.size(); i++) {
      if(speeds.get(i) >= target && faster) {
        returnMonsters.add(monsters.get(i));
      }
      if(speeds.get(i) < target && !faster) {
        returnMonsters.add(monsters.get(i));
      }
    }
    return returnMonsters;
  }