Broken collision detection added.
Minor bug fixes to collision detection. Also attaching output file.
Collision detection is broken as of this moment.