private void clearOldCoverStatus() { //get old moveset and clear coverage foreach (BoardSquare sq in moveSet) { if (SelectedPiece.isWhite()) { sq.setCoveredByWhite(false); } else { sq.setCoveredByBlack(false); } } //get the new moveset, setting coverage is part of moveset MoveCalc.updateLocalBoard(); }