fixed layering issue, sim creates multiple paths now, heat map painted, and some refactoring