Boss Battle Issues

Hey guys! So the game that I released a few days ago space quest has met a few problems. (Really just bugs that I don’t know how to fix) For some reason you can’t die during the boss battle, the boss laser doesn’t appear, and when the boss is dead its doesn’t go away can you guys help. https://microstudio.io/i/P1X3L_2012/spacequestr/ Boss Battle code:

  Boss1 = object end
  Boss1.x = 100
  Boss1.y = 0
  BossBlast = object end
  BossBlast.x = 0
  BossBlast.y = 0
  BossBlast.speed = 1
  BossBlast.active = 0
end
fireBoss1 = function()
  if score >= 255 and not BossBlast.active then
  BossBlast.x = Boss1.x + 10
    BossBlast.y = Boss1.y
    BossBlast.active = 1
  end
end
moveBoss1 = function()
  if BossBlast.active then
   BossBlast.x += BossBlast.speed
    if BossBlast.x > 190 then
     BossBlast.active = 0
      end
  end
  if mode == "BossB1" then
    if distance(blast.x, blast.y,Boss1.x,Boss1.y) <50 then
    bosshp -= 10
end
if distance(blast1.x, blast1.y,Boss1.x,Boss1.y) <50 then
    bosshp -= 20
end
end
end
drawBoss1 = function()
  screen.drawText("Boss HP!: " + bosshp,100,60,15)
  screen.drawSprite("bossufo",Boss1.x,Boss1.y,100)
  if score >= 250 and not BossBlast.active then
    screen.drawSprite("bossblast",BossBlast.x, BossBlast.y, 64,32)
    end
  end