some optimizations
Fix bug with magicmoves routines when they are not inlined
Optimizing move generation
Simplifying genPinned() and genAttacks()