function explored = exploredUpdate(row, col, explored)

if row + 1 < 5
   if explored(row+1, col) ~= 2
       explored(row+1, col) = 1;
   end
end
if row - 1 > 0
    if explored(row-1, col) ~= 2
       explored(row-1, col) = 1;
   end
end
if col-1 > 0
   if explored(row, col-1) ~= 2
       explored(row, col-1) = 1;
   end
end
if col+1 < 5 
    if explored(row, col+1) ~= 2
       explored(row, col+1) = 1;
   end
end

end