fixes #9, added percentage based HP