turn judge logic