add judge, fix calculate scores