Allow pawn promotion and fix chess 960 castling rules.