implement chess/material-diff