implemented timer for quiz