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