The tragedy of the commons explained