Moving the parsing part of tilesets to a separate class (in progress).