Removed unused variable and created "score"