Don't rotate through possibilities that have both ends already connected to other directions.
rename validateEnds -> orderEnds