var endGame = function(game){
  if ( missBall(game.ball, game.player)){
    if (game.player.lives == 0) {
      console.log('game over!')
      alert('Game Over!');
    }
  }
}

var missBall = function(ball, player){
  if ( ball.bottomEdge().y == canvas.height){
    return player.loseLife()
  }
  return false
}

var endGame = function(game){

  if (game.player.lives > 0) {
    missBall(game.ball, game.player)
  } else if (game.player.lives <= 0 ){  
    console.log('game over!')
    alert('Game Over!');
  }
}

var missBall = function(ball, player){
  if ( ball.bottomEdge().y == canvas.height){
    return player.loseLife()
  }
  return false
}

Fix bug where alert wouldn't fire if lives equaled zero
Fix bug where alert wouldn't fire if lives equaled zero
