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