Rethinking the Social Contract: An Agent-Based Model Approach