added inverse_reachablity_with_given_coords