Hi Alfred,
thanks for taking the time to test my game.
1) In that situation you can move the King in d2 because d2 is not under
attack of the Knight. For each piece, if a piece can capture a Pawn, that
piece have to capture that Pawn. So, in your situation the King is not
moving into check.
2) This is a problem. If you read the previous messages in this topic you
see I have tried to solve this problem, without success. I'm not able to
implement the rule "if the King is in check, capturing a Pawn is no more
mandatory". If you can solve this problem I would be grateful to you. :-)
Anyway, I have found without this rule the game is playable as well.