Class NQueensProblem almost ready, just need to implement value method.