hmm..
the function was accessed as a function of wormmy , and as i remember unless and until a global variable(apple_pos) is not assigned with new values , its safe to use it as it is..

let me know if I got your question wrong :)