Detect numbers in grid

yes , i got the solution ig ; like it’s working for most of the cases