public void RemovePiece(Piece piece) { if (piece != null && ActivePieces.Contains(piece)) { ActivePieces.Remove(piece); } }
public void AddPiece(Piece piece) { if (piece != null && !ActivePieces.Contains(piece) && piece.TeamColor == TeamColor) { ActivePieces.Add(piece); } }