saveScores function

initilized the save scores function