Added safe. Added castling. Not adjusting flags.