The first thing you would possibly recognize is This system will make substantial use of global variables. There is a superior discussion on this matter at Stack Overflow. I'm not likely to market or protect significant use of global variables here, but I'd personally stimulate you to be familiar with all perspectives on the topic and realize that