Rewrote 'jump' function so that it uses spherehit and trianglehit variables instead of distance variables only
Trying to find the bug. Unsuccessful