Fix collision detection and added a debugger to stash visual information in.