writing Judge::update()..the most difficult part