Made a patrolling AI that switches to chase mode when it gets line of sight of the player.