how to solve several obstacles while implementing AI