Parse the unit pattern. The queens puzzle example.