fen = mv[mv.length-1].fen;
}
this.vr = new V(fen);
+ this.incheck = this.vr.getCheckSquares();
+ if (this.cursor >= 0) this.lastMove = this.moves[this.cursor];
+ else this.lastMove = null;
document.getElementById("analyzeBtn").classList.remove("active");
}
},