Hello thank you for your comment.
This "chess" game was not made according to chess rules. Main reason for that is AI. It is so stupid that I could not implement some features because it would just destroy itself.
Of course that is no excuse for what I made (with my lack of skills).
With all that in mind I have updated this game to fix as many things as possible from what you wrote down (thank you for that)
In next update I will try to rework AI so it can handle more standard chess rules.
Thank you for playing and I hope that you will like this update at least a little bit.