Created updateQuestion and checkAnswer private methods for cleaner code