Fixed hashing for castling.