did a bit of collision detection