better at detecting check

OUTSTANDING BUG: captured pieces thought to give check