chess: unify random seed handling

print it before running to correctly reproduce issues with --shuffle
add capture gen debug
?
masks: unify mask creation process

Pretty cool stuff