Added a basic retreating AI.