making shown score update and win function