added score writing from applet to firebase