Add Oriented Dominoes

In addition to a colour, each side is annotated with an orientation.
Opposite orientations and similar colours match. This allows for
mirroring and rotations.
Fix type mismatch compilation error.