add a better function to calculate enemy destroying, unfinished