added a variable

this would tell in the bullet has hit something, this would make sure
that a bullet doesn’t continue to travel after hitting an enemy