Check mate

Has changed so that Check Mate is detected more often (I haven't found a case where it is not detected).