// Update is called once per frame
    void FixedUpdate()
    {
        if (currentMode == Mode.playerinside)
        {
            angerlevel = nextangerlevel - 0.001f;
            angerlevel = Mathf.Min(1, Mathf.Max(0, angerlevel));
            transform.Translate(Vector3.forward * getJamSpeed());
            nextangerlevel = angerlevel;
            emergency.transform.Translate(Vector3.forward * 0.5f);
            assignedPlayer.setAngerOut(angerlevel);
            foreach (jamCar car in cars)
            {
                car.moveForEmergency(emergency.transform, getJamSpeed());
            }

            assignedPlayer.moveForEmergency(emergency.transform);
        }
    }