Added checks to the move generation code for when "in check"
* There is a bug in the counting of the perf test