not double counting moves when the same number is at both ends of the board; factoring out search function in preparation for multithreading
not double counting moves when the same number is at both ends of the board; factoring out search function in preparation for multithreading

abw333/dominoes