trying to get localStorage to function properly
can calculate total score