turn sequencing improvements

fixed a bug in main.py