Refactored for clearer code, and rename Game to SharedResources