C# to achieve mine clearance