move enemy level calc to the end