one function to handle the hero bullet hiting the enemy bullet