Refactored existing code, changed scoring algorithm, and solved the fourth challenge