fix code
fixed calculation current turn delay
Merge branch 'fixTurndelay'