Understanding global conflict and cooperation