getNumEnemies fix (lag issues with objectexists)