Added getAppDocumentDirectory function in order to be able to save the score on iOS. This is a tentative, as the file is currently written in plain text.