private void calcRotation(double timeMod) {
        if (turningRight && turningLeft) {
            //Do nothing
        } else if (turningRight) {
            faceAngle += turnSpeed*timeMod;
        } else if (turningLeft) {
            faceAngle -= turnSpeed*timeMod;
        }
        
        //Make sure faceAngle stays between 0 and 360 degrees
        if(faceAngle>360) faceAngle -= 360;
        if(faceAngle<0) faceAngle += 360;
    }