Basic collision detection

Works, but there’s an offset error or something.