Fix validation checks
Merge pull request #20 from stuntguy3000/Patch01

Fix validation checks and remove IntellIJ from .gitignore
Remove bar when health is at 1 or less, not 0 or less. Fixes #21 and fixes #16
Merge branch 'master' of github.com:confuser/BarAPI