Basic AI works(needs improvement)