Flagwatching: How a fox decodes the future