function loadScores () {
    var retrievedScores = localStorage.getItem("Scores");
     retrievedScores = JSON.parse(retrievedScores);

    if (!retrievedScores) {
        return false;
    }
    else {
        for (var i = 0; i <retrievedScores.length; i++){
            scoresArray.push(retrievedScores[i]);
        }
    }
}
//function that retrieves localstorage and saves in scores Array
function that retrieves localstorage and saves in scores Array
function that retrieves localstorage and saves in scores Array
function loadScores () {
    var retrievedScores = localStorage.getItem("Scores");
     retrievedScores = JSON.parse(retrievedScores);
    if (!retrievedScores) {
        return false;
    }
    else {
        for (var i = 0; i <retrievedScores.length; i++){
            scoresArray.push(retrievedScores[i]);
        }
    }
}
function loadScores ( ) { var retrievedScores = localStorage . getItem ( "Scores" ) ; retrievedScores = JSON . parse ( retrievedScores ) ; if ( ! retrievedScores ) { return false ; } else { for ( var i = 0 ; i < retrievedScores . length ; i ++ ) { scoresArray . push ( retrievedScores [ i ] ) ; } } }
function that retrieves localstorage and saves in scores Array
function that retrieves localstorage and saves in scores Array