function wellDone() {
if (timeLeft > 0)
{
if (
confirm(
'Well done! You took '   
+ numMinutes       
+ ' minutes and '       
+ numSeconds       
+ ' seconds to complete the game using '
+ numAttempts
+ ' attempts. Do you want to try again?')
) location.reload();
}   
else {
if (
confirm(
'Bad luck! You ran out of time, but you managed to get '
+ numCorrect
+ ' out of '
+ numPairs
+ ' pairs right. Do you want to try again?')
) location.reload();
}
}