Make findObstacle() public.