Add Check mechanism to the game. Make sure player can't go into Check, nor can he play when checked.
Things to note:
- Make sure to prevent King infinite loop.
- When player can't leave Check, it's a Mate.
- Add special status code for Check. (Write status message as well)
Add Check mechanism to the game. Make sure player can't go into Check, nor can he play when checked.
Things to note: