java docs
improved AI algorithm; fixes ignorance bug