I was bored and made a tic-tac-toe game, and used a 2d char array to make the map. I originally had it char MapArray[4][4] but after defining the elements to a blank template and then using a for loop to print it, the output is all weird. Nothing was wrong with my function to set up the template, and I created a debug function to print single elements and I confirmed that elements in [x][4] weren't being defined correctly. As a dirty fix I just enlarged the array to [5][5] but I'm curious on what was going on here.