Positive and negative mood effects on solving a resource dilemma