Just started using GML and am somewhat new to coding. I wanted to try to make a game menu that changes the color of the option you want to select if you used the arrow keys. I cannot for the life of me figure out why my For loops only work if the columns and rows are the same value (a 3x3 matrix works totally fine, but a 3x2 doesn't). Can anyone figure out what I'm doing wrong? I'd greatly appreciate it. Attached is all the code and the error I get, and I circles the For loops in question.