figuring out vertical collision detection