what was the role of judges in israel?