Functions calling each other in weird order

In my example with the code

What I was trying to accomplish was getting a variable from game mode to character

Was my method the correct way