faster boardEquals