How countries use war games to prevent future catastrophes