def _find_distance_of_closest_pellet(self, target_loc): return len(bfs(self.grid, target_loc, [o])) - 1