Hi Bob,
I still see that the main issue is scope problems. Perhaps these resources will help explain it in more detail:
http://lua-users.org/wiki/ScopeTutorial
http://omnigeek.robmiracle.com/2011/10/14/understanding-scope-for-beginning-programmers/
I know this topic may seem complicated, but it’s essential that you understand it 100%, because it is so fundamental to programming.
Take care,
Brent
