Several updates and code cleanups

Eliminated several unused variables from past builds. Added more
comments.
Also updated TG_Game to prevent updates to avg if the signal is lost