Gets the current shape. (returning a copy here to avoid unexpected modification.)
List<int> getShape() => shape;