expanded turn management logic +resize handling