fix queenside castling, minor cleanup