public void initComponents() {
		m = new BattleMap();
		m.setPreferredSize(new Dimension(750, 750));
		add(m, BorderLayout.CENTER);
		
		JButton b = new JButton("End Turn");
		b.addActionListener(m);
		add(b, BorderLayout.SOUTH);
		
		JMenuBar bar = new JMenuBar();
		setJMenuBar(bar);
		JMenu fileMenu = new JMenu("File");
		fileMenu.setMnemonic('F');
		JMenu OptionMenu = new JMenu("Options");
		OptionMenu.setMnemonic('O');
		bar.add(fileMenu);
		bar.add(OptionMenu);
		
		JMenuItem itmNewGame = new JMenuItem("New Game");
		itmNewGame.setMnemonic('N');
		JMenuItem itmExit = new JMenuItem("Exit");
		itmExit.setMnemonic('X');
		JMenuItem itmRegenerate = new JMenuItem("Generate New Map");
		JCheckBoxMenuItem itmDebug = new JCheckBoxMenuItem("Debug");
		itmDebug.setState(false);
		JCheckBoxMenuItem itmFoW = new JCheckBoxMenuItem("Fog Of War");
		itmFoW.setState(true);
		fileMenu.add(itmNewGame);
		fileMenu.add(itmExit);
		OptionMenu.add(itmRegenerate);
		OptionMenu.add(itmDebug);
		OptionMenu.add(itmFoW);
		
		itmNewGame.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				generateNewGameMenu();
			}
		});
		
		itmExit.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				System.exit(DISPOSE_ON_CLOSE);
			}
		});
		
		itmRegenerate.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				GameManager.NewGame(GameManager.Instance.getGameType(), GameManager.Instance.getGameMode(), null, TurnManager.numPlayers, GameManager.Instance.getNPlanets(), GameManager.Instance.getRows(), GameManager.Instance.getCols());
				BattleMap.Instance.loadBattleMap(GameManager.Instance.getRows(), GameManager.Instance.getCols());
			}
		});
		
		itmDebug.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				//Setup debug dialog.
				GameManager.debug = !GameManager.debug;
			}
		});
		
		itmFoW.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				//Disable/enable FoW
				TurnManager.NoFoW = !TurnManager.NoFoW;
			}
		});
		
		pack();

		_infoPanel = new InfoPanel(this);
		_infoPanel.setLocation(this.getLocation().x + this.getWidth(), this.getLocation().y);
		_infoPanel.setVisible(true);
	}