latest working version worked on turning and turnaround logic