added victory judging program