end turn logic