Place validity checks for Nash algorithms inside algorithm classes.