attempts controller, quiz model score method refactored