use lambda to decide turn value