Latest Version of Code with turning and checks using asin