Refactored score logic and fixed quis.js