Newcomb's Problem, Prisoners' Dilemma, and collective action