Evidence of behavior consistent with self-interest and altruism in an artificially intelligent agent