This will check the initial point ( i . e . ( 0 , 0 ) ) to start the paths .
if ( row == - 1 or row == n or col == - 1 or col == n or visited [ row ] [ col ] or m [ row ] [ col ] == 0 ) : NEW_LINE INDENT return NEW_LINE DEDENT