turningCounter now properly reset at the end of a phase