basic block collision detection now working