How to draw after using addSprite()

im very early into a game project and am basically just working on creating the various components as of now. something im trying to do is create a battle screen that is triggered when a player sprite collides with an enemy sprite. an issue that I am having is that I cant draw objects (like rects and lines) after using the addSprite method on my playerInstance. I can draw my battle UI before calling addSprite no problem. but after it won't draw. this issue persists even if I use remove() on the sprite instance and then try and call my draw function. im sure this is a lifecycle thing im not understanding but would really appreciate help on why this is. also, I am using nova on Mac for development.

here are the three functions im using to do this.

local function renderSprites()
playerInstance = Player(200,100)
enemyInstance = Enemy(160, 105)
playerInstance:addSprite()
enemyInstance:addSprite()
end

local function deleteSprites()
playerInstance:remove()
enemyInstance:remove()
end

local function drawWorld()
gfx.setColor(gfx.kColorBlack)
gfx.setLineWidth(3)
playdate.graphics.drawRect(0, 180, 100, 100)
gfx.drawText("Attack",5,190)
gfx.drawText("Defend",5,215)
end

I would create a transparent sprite for your overlay and draw into that using either pushContext or lockFocus

https://sdk.play.date/inside-playdate/#f-graphics.pushContext