Fix early stop condition

While editing original Uri's messy patch
I have incorrectly simplified the logic
condition. Here is the correct original
version, as it was tested.

bench: 8502826
Position::gives_check - use ci.ksq

Also remove a couple of local variables while
there.

No functional change.
Merge pull request #2 from mcostalba/master

update master