Refactored Game Logic, Learned About Scope Of Variables