added reachable_grid helper