Turns out there's actually another bug: When the player actually defeats the boss, the game immediately restarts. I found this out by adjusting the player bullet damage and compiling the source code myself (yay!).
Should be fixed now! Thanks again :)