     let updateInterval = 0.01
     let dataLogTime = 10.0 //seconds
     let systemSoundID: SystemSoundID = 1052
-    let errorThreshold: Float = 0.004
+    let errorThreshold: Float = 0.2
     var rowNum:Int = 0
     var timer = Timer()
     var counter = 0

    }
    
    @IBAction func trainNNBPressed(_ sender: Any) {
        currentAppStatus.text = "Training NeuralNet"
        
        self.nnInit(inputNums: self.nnInputNum, hiddenNums: self.hiddenLayerNum, actLog: self.actionsLog)
        

        var tmpAns: [Float] = Array(repeating: 0.0, count: actNum)
        for action in actLog {
            let ind = actLog.index(of: action)!
            tmpAns = Array(repeating: 0.0, count: actNum)
            tmpAns[ind] = 1.0
            for _ in 0..<bootTrainDataNum {
                tmpTrainAns.append(tmpAns)
