Hello! My solution for looping through scenes was a little different but it worked. I was curious what others though, Thanks!
private void LoadNextLevel()
{
int currentSceneIndex = SceneManager.GetActiveScene().buildIndex;
int nextSceneIndex = currentSceneIndex + 1;
if (currentSceneIndex <= 1)
{
SceneManager.LoadScene(nextSceneIndex); // todo allow for more than 2 levels
}
else
{
LoadFirstLevel();
}