private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        // Start:
        if (jTable1.isEditing()) {
            JOptionPane.showMessageDialog(rootPane, "In part 3 select the cell with 'a' in the first column", "ERROR", JOptionPane.ERROR_MESSAGE);
        }
        else {
            generalError = false;
            if (!generalError) {
                this.readTape();
            }
            if (!generalError) {
                this.readTable();
            }
            if (!generalError) {
                this.readIStage();
            }
            if (!generalError) {
                g.start();
                this.setSolution();
            }
        }
            
        
        
    }//GEN-LAST:event_jButton2ActionPerformed