i think the code makes the guards detect where you last were even though you have already been spotted and put back to the beginning but thats just my guess