Fix South turning; remove global variables