Works now, thanks for fixing :D
Update: I found the issue with the endings in my code and fixed them (I had messed up the conditions)! Let me know if the issues persist.
Note: There is a spirit ending! You have to find out where to click! :D Also, there are two kinda secret endings if you play around with balancing the constitution.