generate castling moves
add missing const in magic
for coding style consistency: whenever a variable *can* be const, it *should* be.