Added writeScoresheet