function start() {
    window.location.href="game.html"
}

// Prevent spacebar from scrolling the page
document.addEventListener('keydown', e => {
    if (e.code === 'Space') {
        e.preventDefault();
        start();
    }
});

// Advance on click anywhere in the document
document.addEventListener('click', start);