Help Requested With Student Game

I changed the structure of the if/else if/else into one big branch of if/else if/else
Seems like it works.
I guess the big thing is with the two if/else branches there are two blocks that will get executed every time through the draw loop when what you want is only one of the choices. Changing the structure to an if/else if/else makes this happen. Let us know how it goes.

 if (score >= 25) {
    winBackground();
    player.visible = false;
    platform.visible = false;
    platform2.visible = false;
    coin.visible = false;
    livescoin.visible = false;
    barrier.visible = false;
    barrier2.visible = false;
    barrier3.visible = false;
    barrier4.visible = false;
  } else {
    drawbackground();
    player.visible = true;
    platform.visible = true;
    platform2.visible = true;
    coin.visible = true;
    livescoin.visible = true;
    barrier.visible = true;
    barrier2.visible = true;
    barrier3.visible = true;
    barrier4.visible = true;
  }
  if (lives <= 0) {
    losebackground();
    player.visible = false;
    platform.visible = false;
    platform2.visible = false;
    coin.visible = false;
    livescoin.visible = false;
    barrier.visible = false;
    barrier2.visible = false;
    barrier3.visible = false;
    barrier4.visible = false;
  } else {
    drawbackground();
    player.visible = true;
    platform.visible = true;
    platform2.visible = true;
    coin.visible = true;
    livescoin.visible = true;
    barrier.visible = true;
    barrier2.visible = true;
    barrier3.visible = true;
    barrier4.visible = true;
  }

into

if (score >= 25) {
    winBackground();
    player.visible = false;
    platform.visible = false;
    platform2.visible = false;
    coin.visible = false;
    livescoin.visible = false;
    barrier.visible = false;
    barrier2.visible = false;
    barrier3.visible = false;
    barrier4.visible = false;
  } 
  else if (lives <= 0) {
    losebackground();
    player.visible = false;
    platform.visible = false;
    platform2.visible = false;
    coin.visible = false;
    livescoin.visible = false;
    barrier.visible = false;
    barrier2.visible = false;
    barrier3.visible = false;
    barrier4.visible = false;
  } else {
    drawbackground();
    player.visible = true;
    platform.visible = true;
    platform2.visible = true;
    coin.visible = true;
    livescoin.visible = true;
    barrier.visible = true;
    barrier2.visible = true;
    barrier3.visible = true;
    barrier4.visible = true;
  }