rudamentary horizontal collision detection in place