I'm trying to recreate the puzzle panel game from New Mario ->
My interface has 25 picture boxes lined up 5x5, each box is represented by an array variable in a two dimensional boolean array, each is either false or true.

My problem is that I need the to globalize the ppboard arrays in order to refer to them in another private class but when I try to put the variable cooridinates in the public class, the application underlines it and tells me "Declaration Expected".

If this is not possible, I'll need to know how to be able to refer to the picturebox_clicked private sub from another private sub (specifically a menu strip item).

Any suggestions? Thanks

Dim clicks As Integer = 0
Dim score As Integer = 0
Dim mistakes As Integer = 0
Dim PPBoard(4, 4) As Boolean
Dim one, two, three, four, five, six, seven, eight, nine, ten As Boolean '1-10
Dim eleven, twelve, thirteen, fourteen, fifteen, sixteen, seventeen, eighteen, nineteen, twenty As Boolean '11-20
Dim twentyone, twentytwo, twentythree, twentyfour, twentyfive As Boolean '21-25



Private Sub PictureBox_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _
PictureBox1.Click, PictureBox2.Click, PictureBox3.Click, PictureBox4.Click, PictureBox6.Click, _
PictureBox7.Click, PictureBox8.Click, PictureBox9.Click, PictureBox11.Click, PictureBox12.Click, _
PictureBox13.Click, PictureBox14.Click, PictureBox16.Click, PictureBox17.Click, PictureBox18.Click, _
PictureBox19.Click, PictureBox5.Click, PictureBox10.Click, PictureBox15.Click, PictureBox20.Click, _
PictureBox21.Click, PictureBox22.Click, PictureBox23.Click, PictureBox24.Click, PictureBox25.Click

Dim picTileClicked As PictureBox = sender
Dim TileClicked As Integer = Val(picTileClicked.Tag)

PPBoard(0, 0) = False = one
PPBoard(0, 1) = True = two
PPBoard(0, 2) = True = three
PPBoard(0, 3) = True = four
PPBoard(0, 4) = False = five
PPBoard(1, 0) = True = six
PPBoard(1, 1) = False = seven
PPBoard(1, 2) = False = eight
PPBoard(1, 3) = False = nine
PPBoard(1, 4) = True = ten
PPBoard(2, 0) = True = eleven
PPBoard(2, 1) = False = twelve
PPBoard(2, 2) = False = thirteen
PPBoard(2, 3) = False = fourteen
PPBoard(2, 4) = True = fifteen
PPBoard(3, 0) = True = sixteen
PPBoard(3, 1) = False = seventeen
PPBoard(3, 3) = False = eighteen
PPBoard(3, 2) = False = nineteen
PPBoard(3, 4) = True = twenty
PPBoard(4, 0) = False = twentyone
PPBoard(4, 1) = True = twentytwo
PPBoard(4, 2) = True = twentythree
PPBoard(4, 3) = True = twentyfour
PPBoard(4, 4) = False = twentyfive