Fixed move errors with castling.