var hits = 0;

function setup() {
    hits = 0;
}

function hit() {
    hits++;
    console.log(hits);
}

function showAll() {
    $('.hole').flip(true);
}

function hideAll() {
    $('.hole').flip({
        trigger: 'manual'
    });
}

function randomTimeout() {
    return Math.random() * 5000 + 2500;
}

function won() {
    console.log('You won!');
}

function lost() {
    console.log('You lost!');
}

var hits = 0;

function setup() {
    hits = 0;
}

function hit() {
    hits++;
}

function showAll() {
    $('.hole').flip(true);
}

function hideAll() {
    $('.hole').flip({
        trigger: 'manual'
    });
}

function randomTimeout() {
    return Math.random() * 5000 + 2500;
}

function won() {
    alert('You won!');
}

function lost() {
    alert('You lost!');
}

Remove debugging statements from example.