private void adjustWeights(int mood, int curFacit, double act) {
		int desiredOutput = 0;
		if (curFacit == mood) {
			desiredOutput = 1;
		}

		double error = desiredOutput - act;
		if (error != 0) {
			for (int i = 0; i < neuralNetwork.length; i++) {
				for (int j = 0; j < neuralNetwork[i].length; j++) {
					double adjustVal = (learningRate * error * neuralNetwork[i][j]
							.getNodeValue());

					neuralNetwork[i][j].setWeights(mood - 1,
							neuralNetwork[i][j].getWeights()[mood - 1]
									+ adjustVal);
				}
			}
		}
	}