Implement Highscore ranking and refactoring