Merge pull request #4 from ornicar/master

look for mate in N is player was losing before the opponent mistake
Abort material puzzles that become mate in N
Got the sign back to front
Merge pull request #5 from ornicar/master

indirectly reduce the number of material based puzzles
analysis API now requires a token