my compareGuesses function is not showing up on the number guesser, even though I got all the syntax correct. the you win message is not going on the number guesser. what am i doing wrong?

here is my code:

function compareGuesses(humanGuess, computerGuess, secretNumber) {

secretNumber = generateTarget();

var userDistance = Math.abs(humanGuess - secretNumber)

var computerDistance = Math.abs(computerGuess - secretNumber)

if (userDistance < computerDistance) {

return false;

} else if (userDistance > computerDistance) {

return true;

} else {

}

}