how were kings chosen in the bible