code: int[] getGenerals() {
          return Arrays.stream(tiles)
                  .filter(tile1 -> tile1.getClass().equals(GeneralTile.class))
                  .sorted(Comparator.comparingInt(t -> t.getOwnerPlayerIndex().get()))
                  .mapToInt(Tile::getTileIndex)
                  .toArray();
      }
docs: Returns all generals, visible and fogged. This is not a problem since bot will still receive tile as fogged (-3).
  
  @return list of tileIndex where general is, array index is player index