> There was a LOT of global variables (seemingly random 4 uppercase letters) controlling everything.
I once ran across a (c) program that had 26 variables, each one letter long, one for each letter of the alphabet. They were all global variables. And many of them were re-used for completely unrelated things.