calculating and showing percent correct