moves.forEach(m => destinations[m.end.x + "_" + m.end.y] = true);
for (let i=0; i<8; i++) {
for (let j=0; j<8; j++) {
if (this.board[i][j] == V.EMPTY && !destinations[i + "_" + j]) {
const sa = this.sumAttacks([i, j]);
moves.forEach(m => destinations[m.end.x + "_" + m.end.y] = true);
for (let i=0; i<8; i++) {
for (let j=0; j<8; j++) {
if (this.board[i][j] == V.EMPTY && !destinations[i + "_" + j]) {
const sa = this.sumAttacks([i, j]);