modified to judge selecting winner