Fixed wire collision boxes issues.
Made code easier to read.