collision code added, though inactive

saving this for possible later use, the commented out code is on line 331. X^2 operations are far to slow for us to run in this environment.