Line 62 should be if (x < 0 || y < 0 || x >= picture.length || y >= picture[x].length) {
Line 62 should be
if (x < 0 || y < 0 || x >= picture.length || y >= picture[x].length) {