added ability to not let user attack if health is 0
changed constants names to be more explicit
added tests to ensure correct attack and health