MordorQuest: implementing the write-to-file mechanism of the prototype section.