function openModal(isInfested) {
    if(isInfested) {
        lightBoxHolder.firstElementChild.textContent = "You're infested by bugs.";
    }
    else {
        lightBoxHolder.firstElementChild.textContent = "You won! I think you had some kind of effective bug spray on you!!";
    }
    displayOrHidePop(true);
}
/**
 * Opens final modal and decides messages to be displayed based on success or failure of player
 * @param isInfested
 */
Opens final modal and decides messages to be displayed based on success or failure of player
@param isInfested
Opens final modal and decides messages to be displayed based on success or failure of player @param isInfested
function openModal(isInfested) {
    if(isInfested) {
        lightBoxHolder.firstElementChild.textContent = "You're infested by bugs.";
    }
    else {
        lightBoxHolder.firstElementChild.textContent = "You won! I think you had some kind of effective bug spray on you!!";
    }
    displayOrHidePop(true);
}
function openModal ( isInfested ) { if ( isInfested ) { lightBoxHolder . firstElementChild . textContent = "You're infested by bugs." ; } else { lightBoxHolder . firstElementChild . textContent = "You won! I think you had some kind of effective bug spray on you!!" ; } displayOrHidePop ( true ) ; }
Opens final modal and decides messages to be displayed based on success or failure of player
 @param isInfested
Opens final modal and decides messages to be displayed based on success or failure of player @param isInfested