Sorry about the bug! The timer for energy recharge resets whenever the player presses the shoot button, but i didn't have the foresight to ignore the button presses once the energy has been fully drained! I'll keep stuff like this in mind for my nest game!
And yes, the "boss" was maybe a bit too hard for the scope of the game and the resources the player has.
Thank you for all your feedback!