public Grid (int length,int width){
        super (length, width);
        this.setDefaultRenderer(ImageIcon.class, new ImageCellRenderer());
        this.setTableHeader(null);
        this.setBorder(BorderFactory.createMatteBorder(5, 5, 5, 5, Color.WHITE));
        this.setShowVerticalLines(false);
        this.setShowHorizontalLines(false);
        this.setRowHeight(30);
        for (int i=0; i<width;i++){
            this.getColumnModel().getColumn(i).setPreferredWidth(30);
        }
        this.setEnabled(false);
    }