check for mate first, if not, then check proper value