So I was almost ready to give up when one night, I played around with these sentences and found out that there's actually a beautiful solution in here.
Estaba a punto de darme por vencido hasta que una noche, jugando con estas oraciones, hallé que contienen una solución hermosa.