Added a ResourceHolder class and modified the game to use it.