private void printTable() {
   // printout Q table
   for (int index = 0; index < transitionList.size(); index++) {
     printTrans(transitionList.get(index));
     System.out.println(" i: " + index + " Q: " + Q_table[index][0] + " ");
   }
 }
  public void addTransitionNoTrain(Transition t) {
    transitionList.add(t);
    printTrans(t);
    System.out.println();
    // safe it to the file
    String dir = "DunOut.txt";

    try {
      FileWriter out = new FileWriter(dir, true);
      BufferedWriter writer = new BufferedWriter(out);
      writer.write(t.toString());
      writer.newLine();
      writer.close();
      out.close();
    } catch (Exception e) {
      System.err.println(e.toString());
    }
  }