fixed some mapping bugs, fixed chunk change bugs, identified BFS error (have yet to fix), and made general code cleanups!