Added general getDir method to Shadow; Changed file to save map to