Recursion and Random using p5.js