Add function to send score to server.