adding modified nqueens problem