what's going on here? write some documentation for how the code works; what's killingBullet? What's collidedUnit?