returns a pointer to the variable with the name of the variablename in the correct stacktype whether it be the 'number' or 'word' stack