java 2d array is not looping right. i dont understand whyy and how to fix it

Printable View