Implement the SpriteGrid class which can load layers from TMX (Tiled) map files