public static void main(String[] args) throws Exception { System.out.println("Welcome to Dungeons and Dragons 21st Century Command Line Style"); DungeonsAndDragonsGame game = null; try { game = new DungeonsAndDragonsGame(); } catch (FileNotFoundException e) { System.err.println("Unable to load map file"); } IState state = game.getState(); do { state = state.execute(); game.setState(state); } while (!state.gameOver()); System.exit(0); }