private void turn(double amount)
	{	
		// Remembers the last rotation
		//double lastrotation = getRotation();
		double lastrotation = getMoment(this.axelposition);
		// Adds the turn
		//addRotation(amount);
		addMoment(this.axelposition, amount);
		
		double maxturn = Math.abs(this.maxturning * getMovement().getSpeed());
		
		// Sliding affects the maxrotation (makes turning easier)
		if (this.sliding)
			maxturn *= 1  + this.slidepower * this.slideturnmodifier;
		
		double rotation = getMoment(this.axelposition);
		
		// Checks if the car is rotating too fast and does the necessary repairs
		if (Math.abs(rotation) > maxturn)
		{
			// If the car was already going too fast, doens't increase the turning
			if (Math.abs(lastrotation) > maxturn)
				setMoment(this.axelposition, lastrotation);
			// Otherwise, caps the speed to the max
			else if (rotation > 0)
				setMoment(this.axelposition, this.maxturning * getMovement().getSpeed());
			else
				setMoment(this.axelposition, -this.maxturning * getMovement().getSpeed());
		}
	}