Save score function finished