Modified chess script

Modified:
You can not put yourself in check.
50% done with castling.