adds turn handling on client side