created rewardEveryNCorrect code

Signed-off-by: Lindsey <glickfeld@neuro.duke.edu>
fixes to rewardEveryNCorrect

Signed-off-by: Andrew McKinney <mckinney@neuro.duke.edu>
Merge remote-tracking branch 'origin/HoldAndDetect' into Master

Signed-off-by: Andrew McKinney <mckinney@neuro.duke.edu>

Conflicts:
	BehaviorCode/Old-maunsell/HoldAndDetectConstant/HoldAndDetectConstant8.xml