added judge, behaviour of it and a static behaviour of a prisoner