A framework for trivia games