Finished (partially) implementing isCheckmate.