Different way I implemented AI

I did not Like the way how the robot just, forgets about you as soon as it does not spot you, so I made it to where The AI goes from the start location back to the last known location, and as soon s it sees you and looses sight, it will set a new last known location and set that to patrol to