Agent-Based Modeling of Environmental Conflict and Cooperation