add save button to save gamestate into log file