added calculate difficulty function to enemy