public static void calculateWinError(){
		//output error
		for(int outNode = 0; outNode < numOutputs; outNode++){
			double sum = 0;
			for(int weight = 0; weight < hidOut.length; weight++){
				sum += (hiddenOutput[weight] * hidOut[weight][outNode]);
			}
			outputError[outNode] = derivitiveActivationFunction(sum) * (1 - output[outNode] + reward);
		}
		//error in hidden layer
		for(int hidNode = 0; hidNode < numHiddenNodes; hidNode++){
			double sum = 0;
			for(int weight = 0; weight < inHid.length; weight++){
				sum += (input[weight] * inHid[weight][hidNode]);
			}
			double sumOurWeights = 0;
			for(int outweight = 0; outweight < output.length; outweight++){
				sumOurWeights += hiddenOutput[outweight] * outputError[outweight];
			}
			hiddenError[hidNode] = derivitiveActivationFunction(sum) * sumOurWeights;
		}
		
	}