fixed a bug with the highscore sorting, few checkstyle improvements