Rename debug mode to "no graph mode". Debug mode now displays various information and also displays the graph normally.
Refactor collision detection