Added location checking and turn switching
Merge remote-tracking branch 'origin/master'