Collision detection (sort of) working