simple NQueens: use of classes and recursion