Learning What to Eat: Studying Inter-relations Between Learning, Grouping, and Environmental Conditions in an Artificial World