lot of stuff done. getTiles returns a list of tileIDs