The app closing is actually a bug, there is a game over and win screen, but I couldn't fix it before the jam ended due to the bug being slightly really inconsistent and me not being familliar with Godot's debug tools yet.