Suggestion: if you can get this to read tilemaps in the Tiled format, you'll save a lot of work
thanks i will try that