From you?¢_~re example it looks like tiles are counted top to bottom first, it should be easy enough to adapt you?¢_Tre tile counting to this.