public void init() {
		game = this;
		int index = 0;
		for (int r = 0; r < 6; r++) {
			for (int g = 0; g < 6; g++) {
				for (int b = 0; b < 6; b++) {
					int rr = (r * 255 / 5);
					int gg = (g * 255 / 5);
					int bb = (b * 255 / 5);

					colors[index++] = rr << 16 | gg << 8 | bb;
				}
			}
		}
		screen = new Screen(WIDTH, HEIGHT, new SpriteSheet("/sprite_sheet.png"));
		input = new InputHandler(this);
		windowHandler = new WindowHandler(this);
		switch(levelNum){
		case 0:
			level = new Level("/levels/small_test_level.png");
			player = new PlayerMP(level, 15, 12, input,
					JOptionPane.showInputDialog(this, "Please enter a username"),
					null, -1);
			break;
		case 1:
			level = new Level("/levels/water_test_level.png");
			player = new PlayerMP(level, 100, 100, input,
					JOptionPane.showInputDialog(this, "Please enter a username"),
					null, -1);
			break;
			
		}
		
		
		level.addEntity(player);
		Packet00Login loginPacket = new Packet00Login(player.getUsername(), player.x, player.y);
		if (socketServer != null) {
			socketServer.addConnection((PlayerMP) player, loginPacket);
		}
		loginPacket.writeData(socketClient);
		
		//if (JOptionPane.showConfirmDialog(this, "Activate Dill Mode?") == 0) {
		//	InputHandler.dillMode = true;
		//}
	}