Why Qg5?
Not moving the queen, would let white check the king with the bishop and take the queen while still having their queen. Either way they are going to lose that rook.
nice:)
There was another way to solve also
If you need help, please contact our Help and Support team.