Fixed several errors with castles and Checkmates