managed to create a paradox somehow, call stableMatchings([]). afterwards call stableMatchings(X).
Got a working end clause