Renamed priority to rating for clarity, Added a function that can check if a given marriage is unstable