let antikingPos = { w: -1, b: -1 };
for (let c of ["w", "b"]) {
if (c == 'b' && randomness == 1) {
pieces['b'] = pieces['w'];
antikingPos['b'] = antikingPos['w'];
let antikingPos = { w: -1, b: -1 };
for (let c of ["w", "b"]) {
if (c == 'b' && randomness == 1) {
pieces['b'] = pieces['w'];
antikingPos['b'] = antikingPos['w'];