for (int i = 0; i < getMaxTileId(); i++) {
for (int i = 0; i <= getMaxTileId(); i++) {
    public Vector generateGaplessVector() {        Vector gapless = new Vector();        for (int i = 0; i < getMaxTileId(); i++) {            if (getTile(i) != null) gapless.add(getTile(i));        }        return gapless;    }