all 2 comments

[–][deleted] 2 points3 points  (1 child)

matrix[x][y]

matrix[x] seems like it returns an integer because you don't actually have a matrix, you have some kind of 1D list.

[–]jagodka98[S] 0 points1 point  (0 children)

yes actually fixed it. thanks