Modelling collective decision-making: Insights into collective anti-predator behaviors from an agent-based approach