Class NQueensProblem counting conflicted rows.
But still needs to redo actions method.