added counter to keep track off total pieces. Need to refine checkMill
function to eliminate false positives.