A computer laboratory for studying resource dilemmas