More work on in_check()

I did what I think should be about right but I am getting an error when
I am asking it to check if an item is in the set o valid moves.