Fixed the lack of polymorphism in JudgeHandler.