@SuppressWarnings("static-access")
	public void Update() {
		newMouseX = mouse.mouseX;
		newMouseY = mouse.mouseY;

		double rotationSpeed = 0.025;
		double walkSpeed = 1;
		double xMove = 0;
		double zMove = 0;
		
		if(oldMouseX < newMouseX) {
			turnRight = true;
		}
		if(oldMouseX > newMouseX) {
			turnLeft = true;
		}
		if(oldMouseX == newMouseX) {
			turnLeft = false;
			turnRight = false;
		}
		if (KL.up) {
			zMove++;
		}
		if (KL.down) {
			zMove--;
		}
		if (KL.right) {
			xMove++;
		}
		if (KL.left) {
			xMove--;
		}
		if(turnLeft) {
			rotationa -= rotationSpeed;
		}
		if(turnRight) {
			rotationa += rotationSpeed;
		}
		oldMouseX = newMouseX;
		oldMouseY = newMouseY;
		xa += (xMove * Math.cos(rotation) + zMove * Math.sin(rotation)) * walkSpeed;
		za += (zMove * Math.cos(rotation) - xMove * Math.sin(rotation)) * walkSpeed;
		
		x += xa;
		z += za;
		xa *= 0.1;
		za *= 0.1;
		rotation += rotationa;
		rotation *= 0.5;
	}