this code works perfectly exept for its now face the opposite way then to the player..but the min max works against the shaking