N queen problem with additional condition: no 3 or more queens on one line. node chess.js [N] [variants] N - number, border size variants - number, stop when found the specified number of variants