function exploremedicine(skip, preliminary, algorithm, recommencefromscratch, unacknowledged) { for(let i = 0; i < preliminary.length; i++) { if(!unacknowledged.includes(preliminary[i])) { recommencefromscratch(); } else { algorithm.update(skip); } } }