Hooray! I got bug pathfinding to work. It's still maybe a tiny bit wonky,
but it seems to get there eventually every time.