Merge pull request #4 from hmaon/ai_refactor

clang warning, seems like you wanted braces
this code just doesn't work and isn't needed anyway