How do you get an agent to wander through a conditional maze? And how to make the agent double its

I would be very grateful if you could help me with these questions that I had while creating the code for the agent. And also helped with advice on how to make the agent after 30 seconds to get not the exact but approximate location of the victim and move in that direction without acceleration.

Hello,
Use a timer to trigger the location approximation after 30 seconds.
Implement a pathfinding algorithm like A* to determine the direction.
Update the agent’s position at a constant speed towards the target.
This approach does not involve acceleration and should move the agent towards an approximate location of the target

Regards