save score at end of game via score resource