This has been quite interesting to read so far though I am only 1000 lines (half-way) in. I was debating how easy it would be to port to common lisp for me to really-look-at-it but your work is nontrivial.
(The tiles and things have ascii structure / inlined examples in the large linecount)
(*
right
0 1 2 3 4 5 6 7 8 9
left 0 0 14 X X X X 36 X X X
1 1 80 X X X X 70 X X X
2 X X X 3 2 X X 44 X 56
3 X X 34 X X 26 X X 42 X
4 X X 24 X X 16 X X 60 54
5 X X X 22 12 X X 54 X 66
6 32 74 X X X X 90 X X X
7 X X 40 X X 50 X X 100 X
8 X X X 46 64 X X 104 X 106
9 X X 52 X X 62 X X 102 X
tile, rot
take the tile, and rotate it clockwise as indicated.
*)