I am reading a text file line by line. Putting each line into a 2d array. Sometimes the program works, but usually the first element of the 2d array returns as gibberish, ex