Wrote an actual collision detection that at least doesn't crash