[M] Refactored code and cleaned up warnings.
[D] Removed viewGameViewer since it is unused in the current version of the game.