incorrectly handling the end of the turn sequence