Implemented the SpriteRegistry in the TestGame class