@Override
	public void actionPerformed(ActionEvent e) {

		String kp = e.getActionCommand();
		switch (kp) {
		case "Host":
			System.out.println("Host Game");
			InetAddress address = null;
			try {
				address = InetAddress.getLocalHost();
			} catch (UnknownHostException e1) {
				e1.printStackTrace();
			} 
		    IP = "::1";
			break;
		case "Join":
			JFrame frame = new JFrame("IP input");
		    IP = JOptionPane.showInputDialog(frame, "Enter IP");
			System.out.println("Join Game");
			break;
		}
	}