Fixes health calculation system.

Fully fixes #96  
Closes #100  
Old system was a mess and horribly broken. This new system is much cleaner.
Also note: I left in debugging just so you can see @50Wliu 
This is a bad error.
Why not just replace it with
```
parentheses=1;
break;
```
?