refactor code for global variables
Merge branch 'master' of https://github.com/Joshuabaker2/EECE381Group10
jakljfa;kjl