Implemented file saving function. Finished exercise for now.
Example of text file created storing board status.