Added server functionality to write scores