help with pacman c#

Me and a friend have to make pacman in csharp for school. And we're stuck.
We got some kind of code for the collision of pacman, although it's not the thing we want, because with this code pacman has to start in the left corner. So if anyone wants to help us with this, he would be greatful.

_Level1 is the name of our array, which is 28x28.
In our array a '0' stands for a walkable tile.

We were thinking about getting the value of the array and then checking if it is a walkable tile or not, but we don't have any clue how to do it.

Another problem we have with letting our monsters walk randomly without getting through the walls. We got the right code, atleast we think we have, because it works when we apply it to 1 monster. If we try to use the code on 4 monsters they start walking through the walls. And again, with this code the monsters have to start in the top left corner.