adding lock to loadEnemies call