updated take turn logic