loop() uses recursive function instead of giant array.