new algo
Merge pull request #1 from pedrofaustino/new-ai-algo

new algo