Why do you have this code here *and* in updateHP()? Ideally it should only be in updateHP().