for (let row of rows) {
let sumElts = 0;
for (let i = 0; i < row.length; i++) {
if (['K','k'].includes(row[i])) kings[row[i]]++;
if (V.PIECES.includes(row[i].toLowerCase())) sumElts++;
else {
for (let row of rows) {
let sumElts = 0;
for (let i = 0; i < row.length; i++) {
if (['K','k'].includes(row[i])) kings[row[i]]++;
if (V.PIECES.includes(row[i].toLowerCase())) sumElts++;
else {