A backtrack method to creating the map, it is a bit buggy and needs to
be slightly editied as it saves the string chr per line