Updated string printed in console.log and alert to reference correct array indexes.