@Override
	public void actionPerformed(ActionEvent e) {
		if (e.getSource() == singlePlayer) {
			isSinglePlayer = true;
			client(Args);
		} else if (e.getSource() == multiPlayer) {
			if (JOptionPane.showConfirmDialog(null, "run server?", null, JOptionPane.YES_NO_OPTION,
					JOptionPane.QUESTION_MESSAGE) == 0) {
				isServer = true;
				server = new GameServer();
			} else {
				ConnectionDialog connectionDialog = new ConnectionDialog(frame);
				try {
					client(Args);
					client = new GameClient(connectionDialog.getAddress(), connectionDialog.getPort());
					isClient = true;
				} catch (IOException ioe) {
					logger.severe("could not connect to " + connectionDialog.getAddress() + " : "
							+ connectionDialog.getPort());
					logger.logThrowable(ioe);
					System.exit(1);
				}
			}
		}
		frame.dispose();
	}