When selection pays: structured public goods game with a generalized interaction mode | Synapse