private void initializeGUI() {
		GraphicsEnvironment env = GraphicsEnvironment
				.getLocalGraphicsEnvironment();
		if (env.isHeadlessInstance()) {
			System.out.println("Graphics not supported");
			System.exit(0);
		}

		this.window = new JFrame("Worms");
		window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		window.addWindowListener(new WindowAdapter() {
			@Override
			public void windowGainedFocus(WindowEvent e) {
				setFocusToCurrentScreen();
			}

			@Override
			public void windowActivated(WindowEvent e) {
				setFocusToCurrentScreen();
			}

			@Override
			public void windowClosing(WindowEvent e) {
				exit();
			};
		});
		window.setFocusable(false);
		window.setFocusTraversalKeysEnabled(false);

		this.screenPanel = new JPanel();
		screenPanel.setLayout(new BorderLayout());
		screenPanel.setBackground(Color.WHITE);
		screenPanel.setFocusable(false);
		window.getContentPane().add(screenPanel);

		GraphicsDevice device = env.getDefaultScreenDevice();
		if (device.isFullScreenSupported() && !options.disableFullScreen) {
			window.setUndecorated(true);
			window.pack();
			device.setFullScreenWindow(window);
		} else {
			window.setUndecorated(false);
			screenPanel.setPreferredSize(new Dimension(
					GUIConstants.DEFAULT_WINDOW_WIDTH,
					GUIConstants.DEFAULT_WINDOW_HEIGHT));
			window.pack();
		}

		window.setVisible(true);
	}