Added Recursion to AI

- AI is now recursive.