if (!noCastle && this.castleFlags[this.turn].some(v => v < V.size.y))
baseMoves = baseMoves.concat(this.getCastleMoves([x, y]));
break;
if (!noCastle && this.castleFlags[this.turn].some(v => v < V.size.y))
baseMoves = baseMoves.concat(this.getCastleMoves([x, y]));
break;