Fix when a fight request is declined

The script was stopping if a fight was declined, fix this and create a
function for more clean code