Endgames2

Do you care to pull from this branch?

There is a bugfix for the KQKRPs function (fairly obscure and almost certainly no effect on strength) and a simplification for the KPsK function.

Cheers