changed local variable names in swap function, and tested reversing the sort (potentially for high scores management in other program