Updating online score on enter and leave