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);
		level = new Level("/levels/water_test_level.png");
		player = new PlayerMP(level,100,100,input,JOptionPane.showInputDialog(this,"Please enter a username."),null,-1);
		level.addEntity(player);
		Packet00Login loginPacket = new Packet00Login(player.getUsername(),player.x,player.y);

		if(socketServer != null){
			socketServer.addConnection((PlayerMP)player,loginPacket);
		}
		//socketClient.sendData("ping".getBytes());
		loginPacket.writeData(socketClient);
	}