Wrote a collision system that at least doesn't crash, but also doesn't quite work right