Added AI algorithm basic outline