Refactor all the code out of global namespace and into an object namespace Game