making shown score update and win function for game