I solved it, I was using a text file which was converted into a char array and then converted that into an integer in the loops posted above. Instead I just converted the text file straight from string to Int array.
I have no idea why I didn't do this in the first place but for the sake of really wanting to know why it didn't work anyway,

This was my code for converting the text file:

Code:
//reads the text file and 
        public void readMap(String map)
        {
            srMapReader = new StreamReader("Maps//"+map+".txt");//gets map
            string readMap = srMapReader.ReadToEnd();//reads
            readMapArray = readMap.ToCharArray();
            srMapReader.Close();//ends stream
        }
Thanks for the reply,
Arrokai