I have my variables stated globally, and at the end of each function, I want them to be updated globally, so that the next function is using the right numbers.

Does return do this? How do I go about using it?