Maybe that is not your whole code? But basically code should be structured something like:
Code:
MAIN:
'Do stuff
GOSUB SubCode  'Jumps to label SubCode
GOTO SomeCodeBlock
GOTO MAIN  ' Goes back to MAIN label


SomeCodeBlock:
'Do Stuff
GOTO MAIN ' Goes back to MAIN label

SubCode:
'Do Stuff
RETURN ' Takes you back to the line after the GOSUB