N Queens with Pawns problem