Text this: Mathematical analysis of the Royal Game of Ur