Storing last score in preference file