Animals can display incredible levels of intelligence in their quest to either find food, or escape predators.