Check conditions

Added check conditions, also, made the king unable to move to endangered
spaces.
Handle self check
Avoid slefcheck
Instructions for checkmate

left instructions for checkmate I can't continue anymore at the moment.