eightQueensPuzzle refactor