Moves iterating over rows into a callback
Adds handler for accepting quiz answers and checking correctness