mirror[y][x] = map[y][(widthInTiles - 1) - x];
mirror[y][x] = map[y][(bounds.width - 1) - x];
    public void mirror(int dir) {        Tile[][] mirror = new Tile[heightInTiles][widthInTiles];        for (int y = 0; y < heightInTiles; y++) {            for (int x = 0; x < widthInTiles; x++) {                if (dir == MIRROR_VERTICAL) {                    mirror[y][x] = map[(heightInTiles - 1) - y][x];                } else {                    mirror[y][x] = map[y][(widthInTiles - 1) - x];                }            }        }        map = mirror;    }