toMatrix works. tiles start from BL as origin
lot of stuff done. getTiles returns a list of tileIDs
getTiles actually works now. :-)