Moved score counting to server side