changed line 49 in knn.cpp 
	return curEdible;
  to
	return !curEdible;