const kingAttacked = this.isAttacked(this.kingPos[c], this.getOppCol(c))
|| this.isAttacked(this.kingPos[c], 'c');
let res = kingAttacked
? [ JSON.parse(JSON.stringify(this.kingPos[c])) ] //need to duplicate!
: [ ];
const kingAttacked = this.isAttacked(this.kingPos[c], this.getOppCol(c))
|| this.isAttacked(this.kingPos[c], 'c');
let res = kingAttacked
? [ JSON.parse(JSON.stringify(this.kingPos[c])) ] //need to duplicate!
: [ ];