AI Detection and Player Search

To make the AI more dynamic, I implemented a “last known position” mechanic. When enemies lost sight of the player, they would move to the last location, rotate 360 degrees, and only return to patrol if the player was not found. Early versions had issues with spinning too fast, which I solved by adding a rotation speed multiplier.