The Effects of Group Composition and Fractionalization in a Public Goods Game: An Agent-Based Simulation