generate queens board with fewer condition checks