I don\'t understand why the while loop doesn\'t stop when the condition becomes True. How can I fix this? The output keeps printing all the available elements of the matrix.