Fixed incorrect indexing for GetRandomQuestion, refactoring