public class Test
public Shared Sub Main
Dim aryBoard(9, 9) As Integer
'Move the element.
aryBoard(0, 0) = 0
aryBoard(2, 4) = 1
'Check for the element.
If aryBoard(0, 0) = 1 Then
Console.WriteLine("The piece was found.")
Else
Console.WriteLine("The piece was not found.")
End If
End Sub
End class
The piece was not found.