private void init() {
	int run_server = JOptionPane.showConfirmDialog(null, "Run the server ? ");
	if (run_server == 0) {
	    server = new Server(this);
	    client = new Client(this, "localhost");
	    client.start();
	} else if (run_server == 1) {
	    try {
		client = new Client(this, JOptionPane.showInputDialog(null, "Enter IP: "));
		client.start();
	    } catch (HeadlessException e) {
		e.printStackTrace();
	    } catch (NumberFormatException e) {
		e.printStackTrace();
	    }
	} else if (run_server == 2) {
	    System.out.println("Exiting at 0.");
	    System.exit(0);
	}

	String username = JOptionPane.showInputDialog(null, "Enter Username:");
	if (username == null) {
	    System.out.println("Exiting at 1.");
	    System.exit(1);
	}
	if (username.trim().equals("")) {
	    username = "Player";
	}
	
	String info = ""
		+ "<html>"
		+ "<h3>SETTINGS:</h3>"
		+ "<table border=1>"
			+ "<tr>"
				+ "<td>Walk:</td>"
				+ "<td style='color: green'>WASD or ARROWS KEYS</td>"
			+ "</tr>"
			+ "<tr>"
				+ "<td>Shoot:</td>"
				+ "<td style='color: green'>LEFT CLICK</td>"
			+ "</tr>"
			+ "<tr>"
				+ "<td>1st Weapon:</td>"
				+ "<td style='color: green'>1</td>"
			+ "</tr>"
			+ "<tr>"
				+ "<td>2nd Weapon:</td>"
				+ "<td style='color: green'>2</td>"
			+ "</tr>"
			+ "<tr>"
				+ "<td>Speed Boost:</td>"
				+ "<td style='color: green'>SHIFT</td>"
			+ "</tr>"
			+ "<tr>"
				+ "<td>Toggle invisible:</td>"
				+ "<td style='color: green'>I</td>"
			+ "</tr>"			
		+ "</table>"
		+ "<h4>Good Luck !!!</h3>"				
		+ "</html>";
	JOptionPane.showMessageDialog(null, info);

	player = new PlayerMP(10, 10, username, key, mouse, null, -1, true);
	level.addEntity(player);
	Packet00Login packet = new Packet00Login(player.getUsername(), player.getX(), player.getY(), player.getHP(), player.getUniqueID());
	packet.writeData(client);

	if (server != null) {
	    server.addConnections((PlayerMP) player, packet);
	    server.start();
	    
	    Tonny tonny = new Tonny(100, 100, 100);
	    Packet05AddNPC packetNPC = new Packet05AddNPC((int) tonny.getX(), (int) tonny.getY(), tonny.getHP(), tonny.getUniqueID(), MobType.TONNY.getID());
	    packetNPC.writeData(client);

	    BadTonny bad_tonny = new BadTonny(170, 20, 20);
	    packetNPC = new Packet05AddNPC((int) bad_tonny.getX(), (int) bad_tonny.getY(), bad_tonny.getHP(), bad_tonny.getUniqueID(), MobType.BAD_TONNY.getID());
	    packetNPC.writeData(client);

	    bad_tonny = new BadTonny(200, 300, 100);
	    packetNPC = new Packet05AddNPC((int) bad_tonny.getX(), (int) bad_tonny.getY(), bad_tonny.getHP(), bad_tonny.getUniqueID(), MobType.BAD_TONNY.getID());
	    packetNPC.writeData(client);

	    bad_tonny = new BadTonny(250, 300, 100);
	    packetNPC = new Packet05AddNPC((int) bad_tonny.getX(), (int) bad_tonny.getY(), bad_tonny.getHP(), bad_tonny.getUniqueID(), MobType.BAD_TONNY.getID());
	    packetNPC.writeData(client);

	}	
    }