Performance improvments. Prevent wasted deadEnd() checks on every timestep
Merge branch 'dead-end' into report