THIS PROGRAM IS DRIVING ME CRAZY!!! help fixing it

Ok, so.. This program is using a recursive method. but every time it goes into the loop-thing-that's-not-a-loop, it ALWAYS goes into the else statement NO MATTER wat way the "< >" sign i choose... i'm going nuts and i only have 2 hrs to turn in the program >.<