Added weighting to make the algorithm more likely to choose the Farsi script representation as the Question card
Fixed missing function declaration@