Rather than a game over, maybe move the food if you lose your piece a bunch of times. It's not a perfect fix, but it keeps you from being softlocked at least.
only if there is a valid spot for food onscreen! there are too many cases i can’t really predict right now so i think i’ll keep it to 10 deaths = defeat.