let pieces = { w: new Array(8), b: new Array(8) };
// Shuffle pieces on second and before-last rank
for (let c of ["w", "b"]) {
let pieces = { w: new Array(8), b: new Array(8) };
// Shuffle pieces on second and before-last rank
for (let c of ["w", "b"]) {