         
         delay(15){
             self.exportToText(currMatrix: self.dataMatrix, action: self.actionType)
+            self.actionsLog = self.checkOutput(currentActions: self.actionsLog, newAction: self.actionType)
+            let ind = self.actionsLog.index(of: self.actionType)
+            if ind! == 0 {
+                //This is the first misc action
+                self.miscActMatrix.append(self.dataMatrix)
+            } else {
+                self.miscActMatrix[ind!] = self.dataMatrix
+            }
         }
         
     }

    // MARK: NeuralNetwork Config
    //      Initialize a specific untrained NeuralNet
    //      that can handle more than 2 classifications.
    func nnInit(inputNums: Int, hiddenNums: Int, outputNums: Int) {
        do {
            structure = try NeuralNet.Structure(inputs: inputNums, hidden: hiddenNums, outputs: outputNums)
            config = try NeuralNet.Configuration(hiddenActivation: .rectifiedLinear, outputActivation: .sigmoid, cost: .meanSquared, learningRate: 0.4, momentum: 0.2)
            nn = try NeuralNet(structure: structure, config: config)

        catch {
            print(error)
        }
    }
    
    //Checks the log of actions and appends the log if it's a new action
