Quote (Dragoon427 @ Oct 23 2013 06:07pm)
im pretty sure i need to have it be a single function. thats where i am stuck
if that's your only problem, i have good news for you: the solution is simple.
step 1: write your code using multiple helper functions
step 2: copy the code from your helper function, and paste it into the main function replacing your function name
step 3: fix the variable names based on the parameter
step 4: done!