package school_project; import java.util.ArrayList; /** * Represent the map with its pieces. * Every piece has a position element that represent its position on the map */ public class Map extends Shape{ private ArrayList pieces; public Map(boolean[][] matrix) { super(matrix); } public void addPiece(Piece piece){ pieces.add(piece); } }